]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/size.tex
fix text scrolling in GTK2 (patch 703988)
[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
5b087ae2
VZ
37
38\membersection{wxSize::DecTo}\label{wxsizedecto}
39
40\func{wxSize\&}{DecTo}{\param{const wxSize\& }{size}}
41
42Decrements this object so that both of its dimensions are not greater than the
36be32ec 43corresponding dimensions of the \arg{size}.
5b087ae2
VZ
44
45\wxheading{See also}
46
47\helpref{IncTo}{wxsizeincto}
48
49
d75c7970 50\membersection{wxSize::GetWidth}\label{wxsizegetwidth}
a660d684 51
d75c7970 52\constfunc{int}{GetWidth}{\void}
a660d684 53
d75c7970 54Gets the width member.
a660d684 55
d75c7970 56\membersection{wxSize::GetHeight}\label{wxsizegetheight}
a660d684 57
d75c7970 58\constfunc{int}{GetHeight}{\void}
a660d684 59
d75c7970 60Gets the height member.
a660d684 61
5b087ae2
VZ
62
63\membersection{wxSize::IncTo}\label{wxsizeincto}
64
65\func{wxSize\&}{IncTo}{\param{const wxSize\& }{size}}
66
67Increments this object so that both of its dimensions are not less than the
36be32ec 68corresponding dimensions of the \arg{size}.
5b087ae2
VZ
69
70\wxheading{See also}
71
72\helpref{DecTo}{wxsizedecto}
73
74
d75c7970 75\membersection{wxSize::Set}\label{wxsizeset}
a660d684 76
d75c7970 77\func{void}{Set}{\param{int}{ width}, \param{int}{ height}}
a660d684 78
d75c7970 79Sets the width and height members.
a660d684 80
d75c7970 81\membersection{wxSize::SetHeight}\label{wxsizesetheight}
a660d684 82
d75c7970 83\func{void}{SetHeight}{\param{int}{ height}}
a660d684 84
d75c7970 85Sets the height.
a660d684 86
d75c7970 87\membersection{wxSize::SetWidth}\label{wxsizesetwidth}
a660d684 88
d75c7970 89\func{void}{SetWidth}{\param{int}{ width}}
a660d684 90
d75c7970 91Sets the width.
a660d684
KB
92
93\membersection{wxSize::operator $=$}
94
95\func{void}{operator $=$}{\param{const wxSize\& }{sz}}
96
97Assignment operator.
98
99