1 \section{\class{wxSize
}}\label{wxsize
}
3 A
{\bf wxSize
} is a useful data structure for graphics operations.
4 It simply contains integer
{\it width
} and
{\it height
} members.
6 wxSize is used throughout wxWindows as well as wxPoint which, although almost
7 equivalent to wxSize, has a different meaning: wxPoint represents a position
8 while wxSize - the size.
10 \pythonnote{wxPython defines aliases for the
{\tt x
} and
{\tt y
} members
11 named
{\tt width
} and
{\tt height
} since it makes much more sense for
15 \wxheading{Derived from
}
19 \wxheading{Include files
}
25 \helpref{wxPoint
}{wxpoint
},
\helpref{wxRealPoint
}{wxrealpoint
}
27 \latexignore{\rtfignore{\wxheading{Members
}}}
29 \membersection{wxSize::wxSize
}
31 \func{}{wxSize
}{\void}
33 \func{}{wxSize
}{\param{int
}{ width
},
\param{int
}{ height
}}
35 Creates a size object.
38 \membersection{wxSize::DecTo
}\label{wxsizedecto
}
40 \func{wxSize\&
}{DecTo
}{\param{const wxSize\&
}{size
}}
42 Decrements this object so that both of its dimensions are not greater than the
43 corresponding dimensions of the
\it{size
}.
47 \helpref{IncTo
}{wxsizeincto
}
50 \membersection{wxSize::GetWidth
}\label{wxsizegetwidth
}
52 \constfunc{int
}{GetWidth
}{\void}
54 Gets the width member.
56 \membersection{wxSize::GetHeight
}\label{wxsizegetheight
}
58 \constfunc{int
}{GetHeight
}{\void}
60 Gets the height member.
63 \membersection{wxSize::IncTo
}\label{wxsizeincto
}
65 \func{wxSize\&
}{IncTo
}{\param{const wxSize\&
}{size
}}
67 Increments this object so that both of its dimensions are not less than the
68 corresponding dimensions of the
\it{size
}.
72 \helpref{DecTo
}{wxsizedecto
}
75 \membersection{wxSize::Set
}\label{wxsizeset
}
77 \func{void
}{Set
}{\param{int
}{ width
},
\param{int
}{ height
}}
79 Sets the width and height members.
81 \membersection{wxSize::SetHeight
}\label{wxsizesetheight
}
83 \func{void
}{SetHeight
}{\param{int
}{ height
}}
87 \membersection{wxSize::SetWidth
}\label{wxsizesetwidth
}
89 \func{void
}{SetWidth
}{\param{int
}{ width
}}
93 \membersection{wxSize::operator $=$
}
95 \func{void
}{operator $=$
}{\param{const wxSize\&
}{sz
}}