X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a75ba66de8f9dd3ebac0f41ec2e27be6d95aa73..c00fed0ef4d70c9b45d9b8405f636d30eadb7ea6:/docs/latex/wx/sizer.tex?ds=sidebyside diff --git a/docs/latex/wx/sizer.tex b/docs/latex/wx/sizer.tex index 5851c0aac7..a0c77ab757 100644 --- a/docs/latex/wx/sizer.tex +++ b/docs/latex/wx/sizer.tex @@ -25,6 +25,12 @@ or different window (dialog item) sizes on different platforms without problems. the standard font as well as the overall design of Motif widgets requires more space than on Windows, the initial dialog size will automatically be bigger on Motif than on Windows. +Sizers may also be used to control the layout of custom drawn items on the window. The +Add, Insert, and Prepend functions return a pointer to the newly added wxSizerItem. Just +add empty space of the desired size and attributes, and then use the wxSizerItem::GetRect +method to determine where the drawing operations should take place. + + \pythonnote{If you wish to create a sizer class in wxPython you should derive the class from {\tt wxPySizer} in order to get Python-aware capabilities for the various virtual methods.} @@ -378,7 +384,7 @@ by the sizer to resize themselves according to the rules defined by the paramete \func{void}{SetMinSize}{\param{int }{width}, \param{int }{height}} -\func{void}{SetMinSize}{\param{wxSize }{size}} +\func{void}{SetMinSize}{\param{const wxSize\& }{size}} Call this to give the sizer a minimal size. Normally, the sizer will calculate its minimal size based purely on how much space its children need. After calling this @@ -468,6 +474,12 @@ Sets the alignment of this wxSizerFlags to \tt{align}. Note that if this method is not called, the wxSizerFlags has no specified alignment. +\wxheading{See also} + +\helpref{Left}{wxsizerflagsleft},\\ +\helpref{Right}{wxsizerflagsright},\\ +\helpref{Centre}{wxsizerflagscentre} + \membersection{wxSizerFlags::Border}\label{wxsizerflagsborder} @@ -496,11 +508,22 @@ Sets the object of the wxSizerFlags to center itself in the area it is given. \membersection{wxSizerFlags::Expand}\label{wxsizerflagsexpand} -\func{wxSizerFlags\& }{Align}{\void} +\func{wxSizerFlags\& }{Expand}{\void} Sets the object of the wxSizerFlags to expand to fill as much area as it can. +\membersection{wxSizerFlags::Left}\label{wxsizerflagsleft} + +\func{wxSizerFlags\& }{Left}{\void} + +Aligns the object to the left, shortcut for \texttt{Align(wxALIGN\_LEFT)} + +\wxheading{See also} + +\helpref{Align}{wxsizerflagsalign} + + \membersection{wxSizerFlags::Proportion}\label{wxsizerflagsproportion} \func{wxSizerFlags\& }{Proportion}{\param{int }{proportion = 0}} @@ -508,4 +531,13 @@ Sets the object of the wxSizerFlags to expand to fill as much area as it can. Sets the proportion of this wxSizerFlags to \tt{proportion} +\membersection{wxSizerFlags::Right}\label{wxsizerflagsright} + +\func{wxSizerFlags\& }{Right}{\void} + +Aligns the object to the right, shortcut for \texttt{Align(wxALIGN\_RIGHT)} + +\wxheading{See also} + +\helpref{Align}{wxsizerflagsalign}