- /**
- Calculates the minimum desired size for the item, including any space
- needed by borders.
- */
- virtual wxSize CalcMin();
-
- /**
- Destroy the window or the windows in a subsizer, depending on the type
- of item.
- */
- virtual void DeleteWindows();
-
- /**
- Enable deleting the SizerItem without destroying the contained sizer.
- */
- void DetachSizer();
-
- /**
- Return the border attribute.
- */
- int GetBorder() const;
-
- /**
- Return the flags attribute.
-
- See @ref wxsizer_flags "wxSizer flags list" for details.
- */
- int GetFlag() const;
-
- /**
- Return the numeric id of wxSizerItem, or @c wxID_NONE if the id has
- not been set.
- */
- int GetId() const;
-
- /**
- Get the minimum size needed for the item.
- */
- wxSize GetMinSize() const;
-
- /**
- Sets the minimum size to be allocated for this item.
-
- If this item is a window, the @a size is also passed to
- wxWindow::SetMinSize().
- */
- void SetMinSize(const wxSize& size);
-
- /**
- @overload
- */
- void SetMinSize(int x, int y);
-
- /**
- What is the current position of the item, as set in the last Layout.
- */
- wxPoint GetPosition() const;
-
- /**
- Get the proportion item attribute.
- */
- int GetProportion() const;
-
- /**
- Get the ration item attribute.
- */
- float GetRatio() const;
-
- /**
- Get the rectangle of the item on the parent window, excluding borders.
- */
- virtual wxRect GetRect();
-
- /**
- Get the current size of the item, as set in the last Layout.
- */
- virtual wxSize GetSize() const;
-
- /**
- If this item is tracking a sizer, return it. @NULL otherwise.
- */
- wxSizer* GetSizer() const;
-
- /**
- If this item is tracking a spacer, return its size.
- */
- wxSize GetSpacer() const;
-
- /**
- Get the userData item attribute.
- */
- wxObject* GetUserData() const;
-
- /**
- If this item is tracking a window then return it. @NULL otherwise.
- */
- wxWindow* GetWindow() const;
-
- /**
- 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 of 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.
-
- As an exception, if the @c wxRESERVE_SPACE_EVEN_IF_HIDDEN flag was
- used for this sizer item, then IsShown() always returns @true for it
- (see wxSizerFlags::ReserveSpaceEvenIfHidden()).
- */
- bool IsShown() const;
-
- /**
- Is this item a sizer?
- */
- bool IsSizer() const;