/**
Deletes the user data and subsizer, if any.
*/
- ~wxSizerItem();
+ virtual ~wxSizerItem();
/**
Calculates the minimum desired size for the item, including any space
Destroy the window or the windows in a subsizer, depending on the type
of item.
*/
- void DeleteWindows();
+ virtual void DeleteWindows();
/**
Enable deleting the SizerItem without destroying the contained sizer.
/**
Get the rectangle of the item on the parent window, excluding borders.
*/
- wxRect GetRect();
+ virtual wxRect GetRect();
/**
Get the current size of the item, as set in the last Layout.
*/
- wxSize GetSize() const;
+ virtual wxSize GetSize() const;
/**
If this item is tracking a sizer, return it. @NULL otherwise.
adjust the position and size of the item to be within that space
taking alignment and borders into account.
*/
- void SetDimension(const wxPoint& pos, const wxSize& size);
+ virtual void SetDimension(const wxPoint& pos, const wxSize& size);
/**
Set the flag item attribute.
/**
Set the sizer tracked by this item.
+ @deprecated @todo provide deprecation description
*/
void SetSizer(wxSizer* sizer);
/**
Set the size of the spacer tracked by this item.
+ @deprecated @todo provide deprecation description
*/
void SetSpacer(const wxSize& size);
/**
Set the window to be tracked by this item.
+ @deprecated @todo provide deprecation description
*/
void SetWindow(wxWindow* window);
/**
The destructor.
*/
- ~wxSizer();
+ virtual ~wxSizer();
/**
Appends a child to the sizer.
Detaches all children from the sizer. If @a delete_windows is @true then
child windows will also be deleted.
*/
- void Clear(bool delete_windows = false);
+ virtual void Clear(bool delete_windows = false);
/**
Computes client area size for @a window so that it matches the sizer's
@see Remove()
*/
- bool Detach(wxWindow* window);
+ virtual bool Detach(wxWindow* window);
/**
Detach the child @a sizer from the sizer without destroying it.
@see Remove()
*/
- bool Detach(wxSizer* sizer);
+ virtual bool Detach(wxSizer* sizer);
/**
Detach a item at position @a index from the sizer without destroying it.
/**
Returns the current position of the sizer.
*/
- wxPoint GetPosition();
+ wxPoint GetPosition() const;
/**
Returns the current size of the sizer.
*/
- wxSize GetSize();
+ wxSize GetSize() const;
/**
Hides the child @a window.
keeping
the current dimension.
*/
- void Layout();
+ virtual void Layout();
/**
Same as Add(), but prepends the items to the beginning of the
@return @true if the child item was found and removed, @false otherwise.
*/
- bool Remove(wxSizer* sizer);
+ virtual bool Remove(wxSizer* sizer);
/**
Removes a child from the sizer and destroys it if it is a sizer or a
Returns @true if the child item was found and removed, @false otherwise.
*/
- bool Replace(size_t index, wxSizerItem* newitem);
+ virtual bool Replace(size_t index, wxSizerItem* newitem);
/**
Call this to force the sizer to take the given dimension and thus force
appropriately.
@see wxScrolled::SetScrollbars()
+ @deprecated @todo provide deprecation description
*/
void SetVirtualSizeHints(wxWindow* window);
/**
Returns the number of columns in the sizer.
*/
- int GetCols();
+ int GetCols() const;
/**
Returns the horizontal gap (in pixels) between cells in the sizer.
*/
- int GetHGap();
+ int GetHGap() const;
/**
Returns the number of rows in the sizer.
*/
- int GetRows();
+ int GetRows() const;
/**
Returns the vertical gap (in pixels) between the cells in the sizer.
*/
- int GetVGap();
+ int GetVGap() const;
/**
Sets the number of columns in the sizer.
/**
Returns the static box associated with the sizer.
*/
- wxStaticBox* GetStaticBox();
+ wxStaticBox* GetStaticBox() const;
};