diff options
author | David Thompson <dthompson2@worcester.edu> | 2020-12-05 13:12:14 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2020-12-05 13:12:14 -0500 |
commit | adaeccde0643649225a26044d9a588e49d403d85 (patch) | |
tree | 6835a715fd7d0d8cf99fc28c3d0305bcd0659ea8 /doc/api.texi | |
parent | 1bad7879529103b97608cfdf3757ba5cd1186b61 (diff) |
rect: Add setters.
Diffstat (limited to 'doc/api.texi')
-rw-r--r-- | doc/api.texi | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/doc/api.texi b/doc/api.texi index 1abaa87..16f57eb 100644 --- a/doc/api.texi +++ b/doc/api.texi @@ -835,22 +835,38 @@ Return a new rectangle whose upper-left corner is at (@var{x}, @var{y}) and is @var{width} pixels wide and @var{height} pixels high. @end deffn -@deffn {Procedure} rect-x @var{rect} +@deffn {Procedure} rect-x rect Return the X coordinate of @var{rect}. @end deffn -@deffn {Procedure} rect-y @var{rect} +@deffn {Procedure} rect-y rect Return the Y coordinate of @var{rect}. @end deffn -@deffn {Procedure} rect-width @var{rect} +@deffn {Procedure} rect-width rect Return the width of @var{rect}. @end deffn -@deffn {Procedure} rect-height @var{rect} +@deffn {Procedure} rect-height rect Return the height of @var{rect}. @end deffn +@deffn {Procedure} set-rect-x! rect x +Set the x coordinate of @var{rect} to @var{x}. +@end deffn + +@deffn {Procedure} set-rect-y! rect y +Set the y coordinate of @var{rect} to @var{y}. +@end deffn + +@deffn {Procedure} set-rect-width! rect w +Set the width of @var{rect} to @var{w}. +@end deffn + +@deffn {Procedure} set-rect-height! rect h +Set the height of @var{rect} to @var{h}. +@end deffn + @node Surfaces @section Surfaces |