]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/size.tex
ugh. Nesting the (per class) plugin sentries can require them to
[wxWidgets.git] / docs / latex / wx / size.tex
CommitLineData
a660d684
KB
1\section{\class{wxSize}}\label{wxsize}
2
3A {\bf wxSize} is a useful data structure for graphics operations.
d75c7970
VZ
4It simply contains integer {\it width} and {\it height} members.
5
6wxSize is used throughout wxWindows as well as wxPoint which, although almost
7equivalent to wxSize, has a different meaning: wxPoint represents a position
8while wxSize - the size.
a660d684 9
c9110876
VS
10\pythonnote{wxPython defines aliases for the {\tt x} and {\tt y} members
11named {\tt width} and {\tt height} since it makes much more sense for
d75c7970 12sizes.
06d20283
RD
13}
14
954b8ae6 15\wxheading{Derived from}
a660d684 16
9838df2c 17None
a660d684 18
954b8ae6
JS
19\wxheading{Include files}
20
21<wx/gdicmn.h>
22
a660d684
KB
23\wxheading{See also}
24
25\helpref{wxPoint}{wxpoint}, \helpref{wxRealPoint}{wxrealpoint}
26
27\latexignore{\rtfignore{\wxheading{Members}}}
28
29\membersection{wxSize::wxSize}
30
31\func{}{wxSize}{\void}
32
d75c7970 33\func{}{wxSize}{\param{int}{ width}, \param{int}{ height}}
a660d684
KB
34
35Creates a size object.
36
d75c7970 37\membersection{wxSize::GetWidth}\label{wxsizegetwidth}
a660d684 38
d75c7970 39\constfunc{int}{GetWidth}{\void}
a660d684 40
d75c7970 41Gets the width member.
a660d684 42
d75c7970 43\membersection{wxSize::GetHeight}\label{wxsizegetheight}
a660d684 44
d75c7970 45\constfunc{int}{GetHeight}{\void}
a660d684 46
d75c7970 47Gets the height member.
a660d684 48
d75c7970 49\membersection{wxSize::Set}\label{wxsizeset}
a660d684 50
d75c7970 51\func{void}{Set}{\param{int}{ width}, \param{int}{ height}}
a660d684 52
d75c7970 53Sets the width and height members.
a660d684 54
d75c7970 55\membersection{wxSize::SetHeight}\label{wxsizesetheight}
a660d684 56
d75c7970 57\func{void}{SetHeight}{\param{int}{ height}}
a660d684 58
d75c7970 59Sets the height.
a660d684 60
d75c7970 61\membersection{wxSize::SetWidth}\label{wxsizesetwidth}
a660d684 62
d75c7970 63\func{void}{SetWidth}{\param{int}{ width}}
a660d684 64
d75c7970 65Sets the width.
a660d684
KB
66
67\membersection{wxSize::operator $=$}
68
69\func{void}{operator $=$}{\param{const wxSize\& }{sz}}
70
71Assignment operator.
72
73