Rect

X, Y, width and height rectangle dimensions.

Constructors

this
this(int x, int y, int width, int height)

Construct a new Rect.

this
this(Point location, Size size)
Undocumented in source.
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)
Undocumented in source. Be warned that the author may not have intended to support it.
contains
bool contains(Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
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)
Undocumented in source. Be warned that the author may not have intended to support it.
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)
Undocumented in source. Be warned that the author may not have intended to support it.
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)
Undocumented in source. Be warned that the author may not have intended to support it.
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)
Undocumented in source. Be warned that the author may not have intended to support it.
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)
Undocumented in source. Be warned that the author may not have intended to support it.

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