Rect

Undocumented in source.

Constructors

this
this(int x0, int y0, int x1, int y1)
Undocumented in source.

Members

Functions

intersect
bool intersect(Rect rc)

updates this rect to intersection with rc, returns true if result is non empty

intersects
bool intersects(Rect rc)

returns true if this rect has nonempty intersection with rc

isInsideOf
bool isInsideOf(Rect rc)

this rectangle is completely inside rc

isPointInside
bool isPointInside(Point pt)

returns true if point is inside of this rectangle

isPointInside
bool isPointInside(int x, int y)

returns true if point is inside of this rectangle

moveBy
void moveBy(int deltax, int deltay)
Undocumented in source. Be warned that the author may not have intended to support it.
moveToFit
void moveToFit(Rect rc)

moves this rect to fit rc bounds, retaining the same size

offset
void offset(int dx, int dy)
Undocumented in source. Be warned that the author may not have intended to support it.
setMax
void setMax(Rect rc)

for all fields, sets this.field to rc.field if rc.field > this.field

Properties

empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
height
int height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
middlex
int middlex [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
middley
int middley [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
int width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

bottom
int bottom;
Undocumented in source.
left
int left;
Undocumented in source.
right
int right;
Undocumented in source.
top
int top;
Undocumented in source.

Meta