From: Vadim Zeitlin Date: Fri, 5 Dec 2008 21:49:34 +0000 (+0000) Subject: add IsShown() accessor which is sometimes more convenient than IsHidden() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/78fd3d12bc0f956d755a70564305863531010c34 add IsShown() accessor which is sometimes more convenient than IsHidden() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/headercol.h b/include/wx/headercol.h index d82fbff2e5..00bd30ebd1 100644 --- a/include/wx/headercol.h +++ b/include/wx/headercol.h @@ -148,6 +148,8 @@ public: { ChangeFlag(wxCOL_HIDDEN, hidden); } virtual bool IsHidden() const { return HasFlag(wxCOL_HIDDEN); } + bool IsShown() const + { return !IsHidden(); } // for sortable columns indicate whether we should sort in ascending or // descending order diff --git a/interface/wx/headercol.h b/interface/wx/headercol.h index 3aaee0d30d..1b029be54f 100644 --- a/interface/wx/headercol.h +++ b/interface/wx/headercol.h @@ -302,6 +302,13 @@ public: */ virtual bool IsHidden() const; + /** + Returns @true if the column is currently shown. + + This corresponds to the absence of wxCOL_HIDDEN flag. + */ + bool IsShown() const; + /** Sets the sort order for this column.