X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40210d8a0a4c463426b05b70a48cf3484e8088b9..8e458bb53997706d4432d2dc0b9b516320709389:/docs/latex/wx/sizeritem.tex diff --git a/docs/latex/wx/sizeritem.tex b/docs/latex/wx/sizeritem.tex index ea560aef9e..46a495643d 100644 --- a/docs/latex/wx/sizeritem.tex +++ b/docs/latex/wx/sizeritem.tex @@ -2,9 +2,10 @@ \section{\class{wxSizerItem}}\label{wxsizeritem} The wxSizerItem class is used to track the position, size and other -attributes of each item managed by a \helpref{wxSizer}{wxsizer}. In -normal usage user code should never need to deal directly with a -wxSizerItem, but derived sizer classes will. +attributes of each item managed by a \helpref{wxSizer}{wxsizer}. It is not +usually necessary to use this class because the sizer elements can also be +identified by their positions or window or sizer pointers but sometimes it may +be more convenient to use it directly. \wxheading{Derived from} @@ -112,7 +113,7 @@ Get the ration item attribute. \func{wxRect}{GetRect}{\void} -Get the rectangle of the item on the parent window. +Get the rectangle of the item on the parent window, excluding borders. \membersection{wxSizerItem::GetSize}\label{wxsizeritemgetsize} @@ -145,13 +146,7 @@ Get the userData item attribute. \constfunc{wxWindow*}{GetWindow}{\void} -If this item is trackign a window then return it. NULL otherwise. - -\membersection{wxSizerItem::IsShown}\label{wxsizeritemisshown} - -\constfunc{bool}{IsShown}{\void} - -Is this item shown? +If this item is tracking a window then return it. NULL otherwise. \membersection{wxSizerItem::IsSizer}\label{wxsizeritemissizer} @@ -161,6 +156,16 @@ Is this item shown? Is this item a sizer? +\membersection{wxSizerItem::IsShown}\label{wxsizeritemisshown} + +\constfunc{bool}{IsShown}{\void} + +Returns \true if this item is a window or a spacer and it is shown or if this +item is a sizer and not all its elements are hidden. In other words, for sizer +items, all of the child elements must be hidden for the sizer itself to be +considered hidden. + + \membersection{wxSizerItem::IsSpacer}\label{wxsizeritemisspacer} \constfunc{bool}{IsSpacer}{\void} @@ -183,7 +188,7 @@ Set the border item attribute. \membersection{wxSizerItem::SetDimension}\label{wxsizeritemsetdimension} -\func{void}{SetDimension}{\param{wxPoint }{pos}, \param{wxSize }{size}} +\func{void}{SetDimension}{\param{const wxPoint\& }{pos}, \param{const wxSize\& }{size}} Set the position and size of the space allocated to the sizer, and adjust the position and size of the item to be within that space