1998-05-20 14:25:30 +00:00
|
|
|
\section{\class{wxSize}}\label{wxsize}
|
|
|
|
|
|
|
|
A {\bf wxSize} is a useful data structure for graphics operations.
|
|
|
|
It simply contains integer {\it x} and {\it y} members.
|
|
|
|
|
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
|
|
|
|
sizes. There is also coresponding aliases for the \tt{GetWidth} and
|
|
|
|
\tt{GetHeight} methods.
|
|
|
|
}
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
\func{}{wxSize}{\param{int}{ x}, \param{int}{ y}}
|
|
|
|
|
|
|
|
Creates a size object.
|
|
|
|
|
|
|
|
\membersection{wxSize::x}
|
|
|
|
|
|
|
|
\member{int}{x}
|
|
|
|
|
|
|
|
x member.
|
|
|
|
|
|
|
|
\membersection{wxSize::y}
|
|
|
|
|
|
|
|
\member{int}{ y}
|
|
|
|
|
|
|
|
y member.
|
|
|
|
|
|
|
|
\membersection{wxSize::GetX}\label{wxsizegetx}
|
|
|
|
|
|
|
|
\constfunc{int}{GetX}{\void}
|
|
|
|
|
|
|
|
Gets the x member.
|
|
|
|
|
|
|
|
\membersection{wxSize::GetY}\label{wxsizegety}
|
|
|
|
|
|
|
|
\constfunc{int}{GetY}{\void}
|
|
|
|
|
|
|
|
Gets the y member.
|
|
|
|
|
|
|
|
\membersection{wxSize::Set}\label{wxsizeset}
|
|
|
|
|
|
|
|
\func{void}{Set}{\param{int}{ x}, \param{int}{ y}}
|
|
|
|
|
|
|
|
Sets the x and y members.
|
|
|
|
|
|
|
|
\membersection{wxSize::operator $=$}
|
|
|
|
|
|
|
|
\func{void}{operator $=$}{\param{const wxSize\& }{sz}}
|
|
|
|
|
|
|
|
Assignment operator.
|
|
|
|
|
|
|
|
|