void SetRow(int row);
/**
- Checks if the position is valid. An invalid position is (-1,-1).
+ Compare inequality of two wxGBPositions.
*/
- bool operator!(const wxGBPosition& p) const;
+ bool operator!=(const wxGBPosition& p) const;
/**
Compare equality of two wxGBPositions.
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.
is successful and after the next Layout the item will be resized.
*/
bool SetSpan(const wxGBSpan& span);
+
+
+ wxGridBagSizer* GetGBSizer() const;
+ void SetGBSizer(wxGridBagSizer* sizer);
};
void SetRowspan(int rowspan);
/**
- Checks if the span is valid. An invalid span is (-1,-1).
+ Compare inequality of two wxGBSpans.
*/
- bool operator!(const wxGBSpan& o) const;
+ bool operator!=(const wxGBSpan& o) const;
/**
Compare equality of two wxGBSpans.
bool operator==(const wxGBSpan& o) const;
};
+
+const wxGBSpan wxDefaultSpan;