From fe79f76ba9aa2f89165481d7ed796f69df979875 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 15 Dec 2008 10:44:29 +0000 Subject: [PATCH] added helper Is{Col,Row}Shown() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/grid.h | 2 ++ interface/wx/grid.h | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 8a0e20eb1d..6873ca0de5 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -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; diff --git a/interface/wx/grid.h b/interface/wx/grid.h index 607f40c057..0601bf6031 100644 --- a/interface/wx/grid.h +++ b/interface/wx/grid.h @@ -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. -- 2.45.2