Rect

X, Y, width and height rectangle dimensions.

Members

Functions

contains
bool contains(int c_x, int c_y)
bool contains(Point pos)
bool contains(Rect r)
getRect
void getRect(RECT* r)
Undocumented in source. Be warned that the author may not have intended to support it.
inflate
void inflate(int i_width, int i_height)
void inflate(Size insz)
intersectsWith
bool intersectsWith(Rect r)
offset
void offset(int x, int y)
void offset(Point pt)
opEquals
Dequ opEquals(ConstType!(Rect) r)
Dequ opEquals(Rect r)
opEquals
Dequ opEquals(Rect r)

Properties

bottom
int bottom [@property getter]
location
Point location [@property getter]
Point location [@property setter]
right
int right [@property getter]
size
Size size [@property getter]
Size size [@property setter]

Static functions

fromLTRB
Rect fromLTRB(int left, int top, int right, int bottom)

Construct a new Rect from left, top, right and bottom values.

opCall
Rect opCall(int x, int y, int width, int height)
Rect opCall(Point location, Size size)
Rect opCall()

Construct a new Rect.

opCall
Rect opCall(RECT* rect)
height
int height;
width
int width;
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

x
int x;
y
int y;
Undocumented in source.

Meta