Skip to content

format

typescript
Rect.SetValues(x, y, w, h)

class: Rect

description

Set the x, y, width, and height of the rectangle.

parameter

param_nametypedescription
xnumberThe x-coordinate of the top-left corner of the Rect.
ynumberThe y-coordinate of the top-left corner of the Rect.
wnumberThe width of the Rect.
hnumberThe height of the Rect.

reture

typedescription
void

code example