Added wxSizer::Insert()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-12-16 16:37:08 +00:00
parent 5357c8e8b3
commit f35aa3daa3
2 changed files with 19 additions and 0 deletions

View File

@@ -269,6 +269,21 @@ void wxSizer::Prepend( int width, int height, int option, int flag, int border,
m_children.Insert( new wxSizerItem( width, height, option, flag, border, userData ) );
}
void wxSizer::Insert( int before, wxWindow *window, int option, int flag, int border, wxObject* userData )
{
m_children.Insert( before, new wxSizerItem( window, option, flag, border, userData ) );
}
void wxSizer::Insert( int before, wxSizer *sizer, int option, int flag, int border, wxObject* userData )
{
m_children.Insert( before, new wxSizerItem( sizer, option, flag, border, userData ) );
}
void wxSizer::Insert( int before, int width, int height, int option, int flag, int border, wxObject* userData )
{
m_children.Insert( before, new wxSizerItem( width, height, option, flag, border, userData ) );
}
bool wxSizer::Remove( wxWindow *window )
{
wxASSERT( window );