/////////////////////////////////////////////////////////////////////////////
// Name: gbsizer.h
-// Purpose: documentation for wxGBPosition class
+// Purpose: interface of wxGBPosition
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
/**
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.
/**
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}
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;
//@{
/**
};
+
/**
@class wxGBSizerItem
@wxheader{gbsizer.h}
/**
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;
//@}
//@{
};
+
/**
@class wxGBSpan
@wxheader{gbsizer.h}
/**
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.
/**
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;
};
+