The wxGBSizerItem class is used by the wxGridBagSizer for tracking the
items in the sizer. It adds grid position and spanning information to the
- normal wxSizerItem by adding wxGBPosition and wxGBSpan attrbibutes. Most of
+ normal wxSizerItem by adding wxGBPosition and wxGBSpan attributes. Most of
the time you will not need to use a wxGBSizerItem directly in your code,
but there are a couple of cases where it is handy.
Construct a sizer item for tracking a spacer.
*/
wxGBSizerItem(int width, int height, const wxGBPosition& pos,
- const wxGBSpan& span, int flag, int border,
- wxObject* userData);
+ const wxGBSpan& span=wxDefaultSpan, int flag=0, int border=0,
+ wxObject* userData=NULL);
/**
Construct a sizer item for tracking a window.
*/
wxGBSizerItem(wxWindow* window, const wxGBPosition& pos,
- const wxGBSpan& span, int flag, int border,
- wxObject* userData);
+ const wxGBSpan& span=wxDefaultSpan, int flag=0, int border=0,
+ wxObject* userData=NULL);
/**
Construct a sizer item for tracking a subsizer.
*/
wxGBSizerItem(wxSizer* sizer, const wxGBPosition& pos,
- const wxGBSpan& span, int flag, int border,
- wxObject* userData);
+ const wxGBSpan& span=wxDefaultSpan, int flag=0, int border=0,
+ wxObject* userData=NULL);
/**
Get the row and column of the endpoint of this item.
//@}
/**
- Returns @true if this item and the @a other item instersect.
+ Returns @true if this item and the @a other item intersect.
*/
bool Intersects(const wxGBSizerItem& other);
/**
is successful and after the next Layout the item will be resized.
*/
bool SetSpan(const wxGBSpan& span);
+
+
+ wxGridBagSizer* GetGBSizer() const;
+ void SetGBSizer(wxGridBagSizer* sizer);
};
bool operator==(const wxGBSpan& o) const;
};
+
+const wxGBSpan wxDefaultSpan;