wxSize::wxSize
wxSize::DecTo
wxSize::GetWidth
wxSize::GetHeight
wxSize::IncTo
wxSize::Set
wxSize::SetHeight
wxSize::SetWidth
wxSize::operator =
wxSize
Contents Up Previous Next

wxSize

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

wxSize is used throughout wxWindows as well as wxPoint which, although almost equivalent to wxSize, has a different meaning: wxPoint represents a position while wxSize - the size.

wxPython note: wxPython defines aliases for the x and y members named width and height since it makes much more sense for sizes.

Derived from

None

Include files

<wx/gdicmn.h>

See also

wxPoint, wxRealPoint

Members


wxSize::wxSize

wxSize()

wxSize(int width, int height)

Creates a size object.


wxSize::DecTo

wxSize& DecTo(const wxSize& size)

Decrements this object so that both of its dimensions are not greater than the corresponding dimensions of the size.

See also

IncTo


wxSize::GetWidth

int GetWidth() const

Gets the width member.


wxSize::GetHeight

int GetHeight() const

Gets the height member.


wxSize::IncTo

wxSize& IncTo(const wxSize& size)

Increments this object so that both of its dimensions are not less than the corresponding dimensions of the size.

See also

DecTo


wxSize::Set

void Set(int width, int height)

Sets the width and height members.


wxSize::SetHeight

void SetHeight(int height)

Sets the height.


wxSize::SetWidth

void SetWidth(int width)

Sets the width.


wxSize::operator =

void operator =(const wxSize& sz)

Assignment operator.