.\" This is a wxWidgets manpage page generated from the XML docs .TH wxSize 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxSize \- Representation of a size .SH DESCRIPTION A wxSize is a useful data structure for graphics operations. It simply contains integer width and height members. wxSize is used throughout wxWidgets as well as wxPoint which, although almost equivalent to wxSize, has a different meaning: wxPoint represents a position while wxSize - the size. .SH "PARENTS" .SH "INCLUDE FILES" wx/gdicmn.h .SH MEMBERS .SS wxSize () .SS wxSize (int widthint height) Creates a size object. .SS void DecTo (const wxSize& size) Decrements this object so that both of its dimensions are not greater than the corresponding dimensions of the size . .SS bool IsFullySpecified () Returns true if neither of the size object components is equal to -1, which is used as default for the size values in wxWidgets (hence the predefined wxDefaultSize has both of its components equal to -1). This method is typically used before calling SetDefaults . .SS int GetWidth () Gets the width member. .SS int GetHeight () Gets the height member. .SS void IncTo (const wxSize& size) Increments this object so that both of its dimensions are not less than the corresponding dimensions of the size . .SS void Set (int widthint height) Sets the width and height members. .SS void SetDefaults (const wxSize& sizeDefault) Combine this size object with another one replacing the default (i.e. equal to -1) components of this object with those of the other. It is typically used like this: if ( !size.IsFullySpecified() ) { size.SetDefaults(GetDefaultSize()); } .SS void SetHeight (int height) Sets the height. .SS void SetWidth (int width) Sets the width. .SS void operator = (const wxSize& sz) Assignment operator. .SH "SEE ALSO" wxPoint wxRealPoint .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.