.\" This is a wxWidgets manpage page generated from the XML docs .TH wxSizerItem 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxSizerItem \- .SH DESCRIPTION The wxSizerItem class is used to track the position, size and other attributes of each item managed by a wxSizer . In normal usage user code should never need to deal directly with a wxSizerItem, but derived sizer classes will. .SH "PARENTS" wxObject .SH "INCLUDE FILES" wx/sizer.h .SH MEMBERS .SS wxSizerItem (int widthint heightint proportionint flagint borderwxObject* userData) Construct a sizer item for tracking a spacer. .SS wxSizerItem (wxWindow* windowconst wxSizerFlags& flags) .SS wxSizerItem (wxWindow* windowint proportionint flagint borderwxObject* userData) Construct a sizer item for tracking a window. .SS wxSizerItem (wxSizer* windowconst wxSizerFlags& flags) .SS wxSizerItem (wxSizer* sizerint proportionint flagint borderwxObject* userData) Construct a sizer item for tracking a subsizer. .SS ~wxSizerItem () Deletes the user data and subsizer, if any. .SS wxSize CalcMin () Calculates the minimum desired size for the item, including any space needed by borders. .SS void DeleteWindows () Destroy the window or the windows in a subsizer, depending on the type of item. .SS void DetachSizer () Enable deleting the SizerItem without destroying the contained sizer. .SS int GetBorder () Return the border attribute. .SS int GetFlag () Return the flags attribute. .SS wxSize GetMinSize () Get the minimum size needed for the item. .SS wxPoint GetPosition () What is the current position of the item, as set in the last Layout. .SS int GetProportion () Get the proportion item attribute. .SS float GetRatio () Get the ration item attribute. .SS wxRect GetRect () Get the rectangle of the item on the parent window, excluding borders. .SS wxSize GetSize () Get the current size of the item, as set in the last Layout. .SS wxSizer* GetSizer () If this item is tracking a sizer, return it. NULL otherwise. .SS const wxSize& GetSpacer () If this item is tracking a spacer, return its size. .SS wxObject* GetUserData () Get the userData item attribute. .SS wxWindow* GetWindow () If this item is tracking a window then return it. NULL otherwise. .SS bool IsShown () Is this item shown? .SS bool IsSizer () Is this item a sizer? .SS bool IsSpacer () Is this item a spacer? .SS bool IsWindow () Is this item a window? .SS void SetBorder (int border) Set the border item attribute. .SS void SetDimension (const wxPoint& posconst 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 taking alignment and borders into account. .SS void SetFlag (int flag) Set the flag item attribute. .SS void SetInitSize (int xint y) .SS void SetProportion (int proportion) Set the proportion item attribute. .SS void SetRatio (int widthint height) .SS void SetRatio (wxSize size) .SS void SetRatio (float ratio) Set the ratio item attribute. .SS void SetSizer (wxSizer* sizer) Set the sizer tracked by this item. .SS void SetSpacer (const wxSize& size) Set the size of the spacer tracked by this item. .SS void SetWindow (wxWindow* window) Set the window to be tracked by thsi item. .SS void Show (bool show) Set the show item attribute, which sizers use to determine if the item is to be made part of the layout or not. If the item is tracking a window then it is shown or hidden as needed. .SH "SEE ALSO" wxObject .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.