Rect

Undocumented in source.

Constructors

this
this(int[4] array)
Undocumented in source.
this
this(int a, int b, int c, int d)
Undocumented in source.
this
this(ivec2 position, ivec2 size)
Undocumented in source.

Members

Functions

clampSize
void clampSize(uvec2 minSize, uvec2 maxSize)

Returns true if size was changed

contains
bool contains(ivec2 point)
Undocumented in source. Be warned that the author may not have intended to support it.
contains
bool contains(int pointX, int pointY)
Undocumented in source. Be warned that the author may not have intended to support it.
cropOffset
void cropOffset(RectOffset offset)
Undocumented in source. Be warned that the author may not have intended to support it.
croppedByOffset
Rect croppedByOffset(RectOffset offset)
Undocumented in source. Be warned that the author may not have intended to support it.
grow
void grow(ivec2 deltaSize)

Increases size by deltaSize.

growed
Rect growed(ivec2 deltaSize)
Undocumented in source. Be warned that the author may not have intended to support it.
move
void move(ivec2 delta)
Undocumented in source. Be warned that the author may not have intended to support it.
position
ivec2 position()
Undocumented in source. Be warned that the author may not have intended to support it.
relativeToParent
Rect relativeToParent(Rect parent)
Undocumented in source. Be warned that the author may not have intended to support it.
size
ivec2 size()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Unions

__anonymous
union __anonymous
Undocumented in source.

Meta