X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cc4bfafe5a31cb96f35b3ec9b19fa2b0b3a4eef..e447be55142c003de608f5feb0867577b21ed929:/interface/gbsizer.h?ds=sidebyside diff --git a/interface/gbsizer.h b/interface/gbsizer.h index 7c41951596..9036d1edad 100644 --- a/interface/gbsizer.h +++ b/interface/gbsizer.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: gbsizer.h -// Purpose: documentation for wxGBPosition class +// Purpose: interface of wxGBPosition // Author: wxWidgets team // RCS-ID: $Id$ // Licence: wxWindows license @@ -31,12 +31,12 @@ public: /** Get the current column value. */ - int GetCol(); + int GetCol() const; /** Get the current row value. */ - int GetRow(); + int GetRow() const; /** Set a new column value. @@ -51,15 +51,16 @@ public: /** Is the wxGBPosition valid? (An invalid wxGBPosition is (-1,-1). ) */ - bool operator!(const wxGBPosition& p); + bool operator!(const wxGBPosition& p) const; /** Compare equality of two wxGBPositions. */ - bool operator operator==(const wxGBPosition& p); + bool operator operator==(const wxGBPosition& p) const; }; + /** @class wxGridBagSizer @wxheader{gbsizer.h} @@ -160,12 +161,12 @@ public: Get the size of the specified cell, including hgap and vgap. Only valid after a Layout. */ - wxSize GetCellSize(int row, int col); + wxSize GetCellSize(int row, int col) const; /** Get the size used for cells in the grid with no item. */ - wxSize GetEmptyCellSize(); + wxSize GetEmptyCellSize() const; //@{ /** @@ -220,6 +221,7 @@ public: }; + /** @class wxGBSizerItem @wxheader{gbsizer.h} @@ -265,16 +267,16 @@ public: /** Get the grid position of the item. */ - wxGBPosition GetPos(); - void GetPos(int& row, int& col); + wxGBPosition GetPos() const; + const void GetPos(int& row, int& col) const; //@} //@{ /** Get the row and column spanning of the item. */ - wxGBSpan GetSpan(); - void GetSpan(int& rowspan, int& colspan); + wxGBSpan GetSpan() const; + const void GetSpan(int& rowspan, int& colspan) const; //@} //@{ @@ -304,6 +306,7 @@ public: }; + /** @class wxGBSpan @wxheader{gbsizer.h} @@ -330,12 +333,12 @@ public: /** Get the current colspan value. */ - int GetColspan(); + int GetColspan() const; /** Get the current rowspan value. */ - int GetRowspan(); + int GetRowspan() const; /** Set a new colspan value. @@ -350,10 +353,11 @@ public: /** Is the wxGBSpan valid? (An invalid wxGBSpan is (-1,-1). ) */ - bool operator!(const wxGBSpan& o); + bool operator!(const wxGBSpan& o) const; /** Compare equality of two wxGBSpans. */ - bool operator operator==(const wxGBSpan& o); + bool operator operator==(const wxGBSpan& o) const; }; +