X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61503542be731a40df3441e8b063ed80ffc81b1b..c29c95fe24973b94fd724db767193171ca7c513d:/interface/wx/sizer.h diff --git a/interface/wx/sizer.h b/interface/wx/sizer.h index 1cfe3c0edc..ec02ec9e3c 100644 --- a/interface/wx/sizer.h +++ b/interface/wx/sizer.h @@ -3,7 +3,7 @@ // Purpose: interface of wxStdDialogButtonSizer // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -88,7 +88,7 @@ @c wxFIXED_MINSIZE.} @itemdef{wxRESERVE_SPACE_EVEN_IF_HIDDEN, Normally wxSizers don't allocate space for hidden windows or other - items. This flag overrides this behavior so that sufficient space + items. This flag overrides this behaviour so that sufficient space is allocated for the window even if it isn't visible. This makes it possible to dynamically show and hide controls without resizing parent dialog, for example. (Available since 2.8.8.)} @@ -168,7 +168,7 @@ public: to make them grow and shrink equally with the sizer's horizontal dimension. @param flag - OR-combination of flags affecting sizer's behavior. See + OR-combination of flags affecting sizer's behaviour. See @ref wxsizer_flags "wxSizer flags list" for details. @param border Determines the border width, if the flag parameter is set to @@ -226,7 +226,7 @@ public: to make them grow and shrink equally with the sizer's horizontal dimension. @param flag - OR-combination of flags affecting sizer's behavior. See + OR-combination of flags affecting sizer's behaviour. See @ref wxsizer_flags "wxSizer flags list" for details. @param border Determines the border width, if the flag parameter is set to @@ -274,7 +274,7 @@ public: to make them grow and shrink equally with the sizer's horizontal dimension. @param flag - OR-combination of flags affecting sizer's behavior. See + OR-combination of flags affecting sizer's behaviour. See @ref wxsizer_flags "wxSizer flags list" for details. @param border Determines the border width, if the flag parameter is set to @@ -843,7 +843,8 @@ public: the sizer's minimal size. For windows with managed scrollbars this will set them appropriately. - @deprecated @todo provide deprecation description + @deprecated This is exactly the same as FitInside() in wxWidgets 2.9 + and later, please replace calls to it with FitInside(). @see wxScrolled::SetScrollbars() */ @@ -1361,7 +1362,7 @@ public: /** Set the @c wxRESERVE_SPACE_EVEN_IF_HIDDEN flag. Normally wxSizers don't allocate space for hidden windows or other items. This flag - overrides this behavior so that sufficient space is allocated for the + overrides this behaviour so that sufficient space is allocated for the window even if it isn't visible. This makes it possible to dynamically show and hide controls without resizing parent dialog, for example. @@ -1633,23 +1634,28 @@ public: wxGridSizer( int rows, int cols, const wxSize& gap ); //@} - //@{ /** - Returns the number of columns or rows that has been specified for the + Returns the number of columns that has been specified for the sizer. Returns zero if the sizer is automatically adjusting the number of - columns/rows depending on number of its children. To get the effective - number of columns or rows being currently used, see - GetEffectiveColsCount() and GetEffectiveRowsCount(). + columns depending on number of its children. To get the effective + number of columns or rows being currently used, see GetEffectiveColsCount() */ int GetCols() const; + + /** + Returns the number of rows that has been specified for the + sizer. + + Returns zero if the sizer is automatically adjusting the number of + rows depending on number of its children. To get the effective + number of columns or rows being currently used, see GetEffectiveRowsCount(). + */ int GetRows() const; - //@} - //@{ /** - Returns the number of columns or rows currently used by the sizer. + Returns the number of columns currently used by the sizer. This will depend on the number of children the sizer has if the sizer is automatically adjusting the number of columns/rows. @@ -1657,8 +1663,16 @@ public: @since 2.9.1 */ int GetEffectiveColsCount() const; + + /** + Returns the number of rows currently used by the sizer. + + This will depend on the number of children the sizer has if + the sizer is automatically adjusting the number of columns/rows. + + @since 2.9.1 + */ int GetEffectiveRowsCount() const; - //@} /** Returns the horizontal gap (in pixels) between cells in the sizer.