- Construct a sizer item for tracking a spacer.
- */
- wxSizerItem(int width, int height, int proportion, int flag,
- int border, wxObject* userData);
-
- //@{
- /**
- Construct a sizer item for tracking a window.
- */
- wxSizerItem(wxWindow* window, const wxSizerFlags& flags);
- wxSizerItem(wxWindow* window, int proportion, int flag,
- int border,
- wxObject* userData);
- //@}
-
- //@{
- /**
- Construct a sizer item for tracking a subsizer.
- */
- wxSizerItem(wxSizer* window, const wxSizerFlags& flags);
- wxSizerItem(wxSizer* sizer, int proportion, int flag,
- int border,
- wxObject* userData);
- //@}
-
- /**
- Deletes the user data and subsizer, if any.
- */
- virtual ~wxSizerItem();
-
- /**
- 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.