Rect

X, Y, width and height rectangle dimensions.

Constructors

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

Construct a new Rect.

this
this(RECT* rect)
Undocumented in source.

Members

Functions

bottom
int bottom()
Undocumented in source. Be warned that the author may not have intended to support it.
contains
bool contains(int c_x, int c_y)
Undocumented in source. Be warned that the author may not have intended to support it.
contains
bool contains(Point pos)
bool contains(Rect r)

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

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)
Undocumented in source. Be warned that the author may not have intended to support it.
inflate
void inflate(Size insz)

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

intersectsWith
bool intersectsWith(Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
location
Point location()
Undocumented in source. Be warned that the author may not have intended to support it.
location
void location(Point pt)

ditto

offset
void offset(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
offset
void offset(Point pt)

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

opEquals
Dequ opEquals(ConstType!(Rect) r)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
Dequ opEquals(Rect r)

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

opEquals
Dequ opEquals(Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
right
int right()
Undocumented in source. Be warned that the author may not have intended to support it.
size
Size size()
Undocumented in source. Be warned that the author may not have intended to support it.
size
void size(Size sz)

ditto

Static functions

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

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

Variables

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

Meta