Add wxListCtrl::GetAlternateRowColour()

Simple accessor matching the existing setter.

Closes #17250.
This commit is contained in:
Troels Knakkergaard
2015-11-16 03:10:16 +01:00
committed by Vadim Zeitlin
parent 7c82b9a504
commit 2460410278
2 changed files with 9 additions and 0 deletions

View File

@@ -458,6 +458,7 @@ public:
void EnableAlternateRowColours(bool enable = true);
void SetAlternateRowColour(const wxColour& colour);
wxColour GetAlternateRowColour() const { return m_alternateRowColour.GetBackgroundColour(); }
protected:
// Real implementations methods to which our public forwards.

View File

@@ -789,6 +789,14 @@ public:
*/
void SetAlternateRowColour(const wxColour& colour);
/**
Get the alternative row background colour.
@since 3.1.0
@see SetAlternateRowColour()
*/
wxColour GetAlternateRowColour() const;
/**
Determines which item (if any) is at the specified point, giving details
in @a flags. Returns index of the item or @c wxNOT_FOUND if no item is at