Contents Up Previous Next

wxSize

A wxSize is a useful data structure for graphics operations. It simply contains integer x and y members.

wxPython note:
wxPython defines aliases for the x and y members named width and height since it makes much more sense for sizes. There is also coresponding aliases for the GetWidth and GetHeight methods.

Derived from

None

Include files

<wx/gdicmn.h>

See also

wxPoint, wxRealPoint

Members

wxSize::wxSize
wxSize::x
wxSize::y
wxSize::GetX
wxSize::GetY
wxSize::Set
wxSize::operator =


wxSize::wxSize

wxSize()

wxSize(int x, int y)

Creates a size object.


wxSize::x

int x

x member.


wxSize::y

int y

y member.


wxSize::GetX

int GetX() const

Gets the x member.


wxSize::GetY

int GetY() const

Gets the y member.


wxSize::Set

void Set(int x, int y)

Sets the x and y members.


wxSize::operator =

void operator =(const wxSize& sz)

Assignment operator.