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