1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxSize}}\label{wxsize}
|
|
|
|
|
|
|
|
A {\bf wxSize} is a useful data structure for graphics operations.
|
1999-06-12 16:56:46 -04:00
|
|
|
It simply contains integer {\it width} and {\it 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.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-12-25 15:34:56 -05:00
|
|
|
\pythonnote{wxPython defines aliases for the {\tt x} and {\tt y} members
|
|
|
|
named {\tt width} and {\tt height} since it makes much more sense for
|
1999-06-12 16:56:46 -04:00
|
|
|
sizes.
|
1999-02-19 02:58:02 -05:00
|
|
|
}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Derived from}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-24 09:57:09 -05:00
|
|
|
None
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/gdicmn.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxPoint}{wxpoint}, \helpref{wxRealPoint}{wxrealpoint}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxSize::wxSize}
|
|
|
|
|
|
|
|
\func{}{wxSize}{\void}
|
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\func{}{wxSize}{\param{int}{ width}, \param{int}{ height}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Creates a size object.
|
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\membersection{wxSize::GetWidth}\label{wxsizegetwidth}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\constfunc{int}{GetWidth}{\void}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
Gets the width member.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\membersection{wxSize::GetHeight}\label{wxsizegetheight}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\constfunc{int}{GetHeight}{\void}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
Gets the height member.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\membersection{wxSize::Set}\label{wxsizeset}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\func{void}{Set}{\param{int}{ width}, \param{int}{ height}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
Sets the width and height members.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\membersection{wxSize::SetHeight}\label{wxsizesetheight}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\func{void}{SetHeight}{\param{int}{ height}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
Sets the height.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\membersection{wxSize::SetWidth}\label{wxsizesetwidth}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
\func{void}{SetWidth}{\param{int}{ width}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-06-12 16:56:46 -04:00
|
|
|
Sets the width.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\membersection{wxSize::operator $=$}
|
|
|
|
|
|
|
|
\func{void}{operator $=$}{\param{const wxSize\& }{sz}}
|
|
|
|
|
|
|
|
Assignment operator.
|
|
|
|
|
|
|
|
|