From e6273b919b2a76109cd3d4b90c68d2d92f148eeb Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 11 Jul 2012 04:23:58 +0000 Subject: [PATCH] Interface fixes for Phoenix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/sizer.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/interface/wx/sizer.h b/interface/wx/sizer.h index 8083caef3d..351215add7 100644 --- a/interface/wx/sizer.h +++ b/interface/wx/sizer.h @@ -283,6 +283,19 @@ public: int flag = 0, int border = 0, wxObject* userData = NULL); + + /** + Appends a spacer child to the sizer. + + @param width + Width of the spacer. + @param height + Height of the spacer. + @param flags + A wxSizerFlags object that enables you to specify most of the other + parameters more conveniently. + */ + wxSizerItem* Add( int width, int height, const wxSizerFlags& flags); wxSizerItem* Add(wxSizerItem* item); @@ -571,6 +584,15 @@ public: int flag = 0, int border = 0, wxObject* userData = NULL); + /** + Insert a child into the sizer before any existing item at @a index. + + See Add() for the meaning of the other parameters. + */ + wxSizerItem* Insert(size_t index, + int width, + int height, + const wxSizerFlags& flags); wxSizerItem* Insert(size_t index, wxSizerItem* item); @@ -662,6 +684,12 @@ public: int border = 0, wxObject* userData = NULL); + /** + Same as Add(), but prepends the items to the beginning of the + list of items (windows, subsizers or spaces) owned by this sizer. + */ + wxSizerItem* Prepend(int width, int height, const wxSizerFlags& flags); + wxSizerItem* Prepend(wxSizerItem* item); /** -- 2.47.2