added wxSizerItem::Init()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -78,10 +78,28 @@ WX_DEFINE_EXPORTED_LIST( wxSizerItemList );
|
|||||||
growablecols
|
growablecols
|
||||||
minsize
|
minsize
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// wxSizerItem
|
// wxSizerItem
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void wxSizerItem::Init()
|
||||||
|
{
|
||||||
|
m_window = NULL;
|
||||||
|
m_sizer = NULL;
|
||||||
|
m_show = true;
|
||||||
|
m_userData = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxSizerItem::Init(const wxSizerFlags& flags)
|
||||||
|
{
|
||||||
|
Init();
|
||||||
|
|
||||||
|
m_proportion = flags.GetProportion();
|
||||||
|
m_flag = flags.GetFlags();
|
||||||
|
m_border = flags.GetBorderInPixels();
|
||||||
|
}
|
||||||
|
|
||||||
wxSizerItem::wxSizerItem( int width, int height, int proportion, int flag, int border, wxObject* userData )
|
wxSizerItem::wxSizerItem( int width, int height, int proportion, int flag, int border, wxObject* userData )
|
||||||
: m_window( NULL )
|
: m_window( NULL )
|
||||||
, m_sizer( NULL )
|
, m_sizer( NULL )
|
||||||
@@ -130,15 +148,12 @@ wxSizerItem::wxSizerItem( wxSizer *sizer, int proportion, int flag, int border,
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxSizerItem::wxSizerItem()
|
wxSizerItem::wxSizerItem()
|
||||||
: m_window( NULL )
|
|
||||||
, m_sizer( NULL )
|
|
||||||
, m_proportion( 0 )
|
|
||||||
, m_border( 0 )
|
|
||||||
, m_flag( 0 )
|
|
||||||
, m_show( true )
|
|
||||||
, m_ratio( 0.0 )
|
|
||||||
, m_userData( NULL )
|
|
||||||
{
|
{
|
||||||
|
Init();
|
||||||
|
|
||||||
|
m_proportion = 0;
|
||||||
|
m_border = 0;
|
||||||
|
m_flag = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxSizerItem::~wxSizerItem()
|
wxSizerItem::~wxSizerItem()
|
||||||
|
Reference in New Issue
Block a user