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)
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(ref 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.

Meta