Rect.setOffset
Function/Meaning
Sets the rectangle position
Type
Method of the
Rect class
Syntax
setOffset(
x
,
y
)
Arguments
x
Specifies the X coordinate of the rectangle.
This value can also be retrieved or set via the
Rect.left
property.
y
Specifies the Y coordinate of the rectangle.
This value can also be retrieved or set via the
Rect.topt
property.
Return Value
None (void)
Description
Sets the position of the rectangle.