Make wxGridSizer ctors more consistent.
The old and confusing wxGridSizer(int cols, int vgap = 0, int hgap = 0) is removed and replaced with wxGridSizer(int cols, int vgap, int hgap). New ctor overloads using wxSize for the gap parameter added. Closes #11040. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -724,8 +724,14 @@ private:
|
||||
class WXDLLIMPEXP_CORE wxGridSizer: public wxSizer
|
||||
{
|
||||
public:
|
||||
// ctors specifying the number of columns only: number of rows will be
|
||||
// deduced automatically depending on the number of sizer elements
|
||||
wxGridSizer( int cols, int vgap, int hgap );
|
||||
wxGridSizer( int cols, const wxSize& gap = wxSize(0, 0) );
|
||||
|
||||
// ctors specifying the number of rows and columns
|
||||
wxGridSizer( int rows, int cols, const wxSize& gap );
|
||||
wxGridSizer( int rows, int cols, int vgap, int hgap );
|
||||
wxGridSizer( int cols, int vgap = 0, int hgap = 0 );
|
||||
|
||||
virtual wxSizerItem *Insert(size_t index, wxSizerItem *item);
|
||||
|
||||
|
Reference in New Issue
Block a user