Add wxHeaderCtrl::GetColumnTitleWidth() overload taking index
This makes it possible to get the appropriate column width from outside the class, as GetColumn() itself is currently protected and so the existing overload couldn't easily used.
This commit is contained in:
committed by
Vadim Zeitlin
parent
d8c3c53f05
commit
0766283b2e
@@ -159,6 +159,12 @@ public:
|
||||
// compute column title width
|
||||
int GetColumnTitleWidth(const wxHeaderColumn& col);
|
||||
|
||||
// compute column title width for the column with the given index
|
||||
int GetColumnTitleWidth(unsigned int idx)
|
||||
{
|
||||
return GetColumnTitleWidth(GetColumn(idx));
|
||||
}
|
||||
|
||||
// implementation only from now on
|
||||
// -------------------------------
|
||||
|
||||
|
@@ -404,6 +404,16 @@ public:
|
||||
*/
|
||||
int GetColumnTitleWidth(const wxHeaderColumn& col);
|
||||
|
||||
/**
|
||||
Returns width needed for the column with the given index.
|
||||
|
||||
This is just a convenient wrapper for the overload taking
|
||||
wxHeaderColumn.
|
||||
|
||||
@since 3.1.3
|
||||
*/
|
||||
int GetColumnTitleWidth(unsigned int idx);
|
||||
|
||||
protected:
|
||||
/**
|
||||
Method to be implemented by the derived classes to return the
|
||||
|
Reference in New Issue
Block a user