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.