added helper Is{Col,Row}Shown()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-15 10:44:29 +00:00
parent 3039ade95d
commit fe79f76ba9
2 changed files with 12 additions and 0 deletions

View File

@@ -1485,8 +1485,10 @@ public:
//
int GetDefaultRowSize() const;
int GetRowSize( int row ) const;
bool IsRowShown(int row) const { return GetRowSize(row) != 0; }
int GetDefaultColSize() const;
int GetColSize( int col ) const;
bool IsColShown(int col) const { return GetColSize(col) != 0; }
wxColour GetDefaultCellBackgroundColour() const;
wxColour GetCellBackgroundColour( int row, int col ) const;
wxColour GetDefaultCellTextColour() const;

View File

@@ -2014,6 +2014,11 @@ public:
*/
int GetColSize(int col) const;
/**
Returns @true if the specified column is not currently hidden.
*/
bool IsColShown(int col) const;
/**
Returns the default height for column labels.
*/
@@ -2054,6 +2059,11 @@ public:
*/
int GetRowSize(int row) const;
/**
Returns @true if the specified row is not currently hidden.
*/
bool IsRowShown(int row) const;
/**
Sets the height of the column labels.