]> git.saurik.com Git - wxWidgets.git/commitdiff
add IsShown() accessor which is sometimes more convenient than IsHidden()
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Dec 2008 21:49:34 +0000 (21:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Dec 2008 21:49:34 +0000 (21:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/headercol.h
interface/wx/headercol.h

index d82fbff2e528d1bb134c10ce83504f2be25c498d..00bd30ebd1aa04ed7eaa21136369aafa02140de9 100644 (file)
@@ -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
index 3aaee0d30d8f7d03b5f72c1f21cb04340f93f5ed..1b029be54ffe3afc263fc9ee2c204d6cedb04d47 100644 (file)
@@ -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.