Use default values for some parameters of wxSizerItem and wxGBSizerItem ctors

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-12-10 04:34:06 +00:00
parent e6d7f1efce
commit 5eb16fe200
4 changed files with 44 additions and 38 deletions

View File

@@ -231,20 +231,20 @@ public:
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.
@@ -291,6 +291,10 @@ public:
is successful and after the next Layout the item will be resized.
*/
bool SetSpan(const wxGBSpan& span);
wxGridBagSizer* GetGBSizer() const;
void SetGBSizer(wxGridBagSizer* sizer);
};
@@ -348,3 +352,5 @@ public:
bool operator==(const wxGBSpan& o) const;
};
const wxGBSpan wxDefaultSpan;