Added default ctor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-11-07 07:05:39 +00:00
parent 1621c234d1
commit 1b52f7aba0
2 changed files with 13 additions and 2 deletions

View File

@@ -114,6 +114,10 @@ public:
int border,
wxObject* userData );
// default ctor
wxGBSizerItem();
// Get the grid position of the item
wxGBPosition GetPos() const { return m_pos; }
void GetPos(int& row, int& col) const;
@@ -155,7 +159,7 @@ protected:
private:
DECLARE_CLASS(wxGBSizerItem)
DECLARE_DYNAMIC_CLASS(wxGBSizerItem)
DECLARE_NO_COPY_CLASS(wxGBSizerItem)
};

View File

@@ -27,7 +27,7 @@
//---------------------------------------------------------------------------
IMPLEMENT_CLASS(wxGBSizerItem, wxSizerItem)
IMPLEMENT_DYNAMIC_CLASS(wxGBSizerItem, wxSizerItem)
IMPLEMENT_CLASS(wxGridBagSizer, wxFlexGridSizer)
const wxGBSpan wxDefaultSpan;
@@ -78,6 +78,13 @@ wxGBSizerItem::wxGBSizerItem( wxSizer *sizer,
{
}
wxGBSizerItem::wxGBSizerItem()
: wxSizerItem(),
m_pos(-1,-1),
m_span(-1,-1),
m_sizer(NULL)
{
}
//---------------------------------------------------------------------------