X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3051a44a73502c2b03d1618d0a8e94274ee67e16..7f15deea6d6e45b3ae37d4e1402ac9ce044305eb:/interface/wx/headerctrl.h diff --git a/interface/wx/headerctrl.h b/interface/wx/headerctrl.h index 862d26c5b6..1ead478039 100644 --- a/interface/wx/headerctrl.h +++ b/interface/wx/headerctrl.h @@ -5,7 +5,7 @@ // Created: 2008-12-01 // RCS-ID: $Id$ // Copyright: (c) 2008 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -374,6 +374,13 @@ public: */ bool ShowCustomizeDialog(); + /** + Returns width needed for given column's title. + + @since 2.9.4 + */ + int GetColumnTitleWidth(const wxHeaderColumn& col); + protected: /** Method to be implemented by the derived classes to return the @@ -383,7 +390,7 @@ protected: The column index, between 0 and the value last passed to SetColumnCount(). */ - virtual const wxHeaderColumnBase& GetColumn(unsigned int idx) const = 0; + virtual const wxHeaderColumn& GetColumn(unsigned int idx) const = 0; /** Method called when the column visibility is changed by the user. @@ -439,7 +446,7 @@ protected: to fit its width on header double click you need to implement this method using logic similar to this example: @code - class MyHeaderCtrl : public wxHeaderColumnBase + class MyHeaderColumn : public wxHeaderColumn { public: ... @@ -455,7 +462,7 @@ protected: { public: protected: - virtual wxHeaderColumnBase& GetColumn(unsigned int idx) const + virtual wxHeaderColumn& GetColumn(unsigned int idx) const { return m_cols[idx]; } @@ -645,7 +652,7 @@ protected: Event class representing the events generated by wxHeaderCtrl. @library{wxcore} - @category{ctrl} + @category{events} @see wxHeaderCtrl */