A class for manipulating rectangles.
Derived from
None
Include files
<wx/gdicmn.h>
See also
Members
wxRect::wxRect
wxRect::x
wxRect::y
wxRect::width
wxRect::height
wxRect::GetBottom
wxRect::GetHeight
wxRect::GetLeft
wxRect::GetPosition
wxRect::GetRight
wxRect::GetSize
wxRect::GetTop
wxRect::GetWidth
wxRect::GetX
wxRect::GetY
wxRect::Inflate
wxRect::SetHeight
wxRect::SetWidth
wxRect::SetX
wxRect::SetY
wxRect::operator =
wxRect::operator ==
wxRect::operator !=
wxRect()
Default constructor.
wxRect(int x, int y, int width, int height)
Creates a wxRect object from x, y, width and height values.
wxRect(const wxPoint& topLeft, const wxPoint& bottomRight)
Creates a wxRect object from top-left and bottom-right points.
wxRect(const wxPoint& pos, const wxSize& size)
Creates a wxRect object from position and size values.
int x
x coordinate of the top-level corner of the rectangle.
int y
y coordinate of the top-level corner of the rectangle.
int width
Width member.
int height
Height member.
int GetBottom() const
Gets the bottom point of the rectangle.
int GetHeight() const
Gets the height member.
int GetLeft() const
Gets the left point of the rectangle (the same as wxRect::GetX).
wxPoint GetPosition() const
Gets the position.
int GetRight() const
Gets the right point of the rectangle.
wxSize GetSize() const
Gets the size.
int GetTop() const
Gets the top point of the rectangle (the same as wxRect::GetY).
int GetWidth() const
Gets the width member.
int GetX() const
Gets the x member.
int GetY() const
Gets the y member.
void Inflate(wxCoord dx, wxCoord dy)
void Inflate(wxCoord diff)
Increase the rectangle size by dx in x direction and dy in y direction. Both (or one of) parameters may be negative to decrease the rectngle size.
The second form uses the same diff for both dx and dy.
void SetHeight(int height)
Sets the height.
void SetWidth(int width)
Sets the width.
void SetX(int x)
Sets the x position.
void SetY(int y)
Sets the y position.
void operator =(const wxRect& rect)
Assignment operator.
bool operator ==(const wxRect& rect)
Equality operator.
bool operator !=(const wxRect& rect)
Inequality operator.