From 2460410278a47ddfc5a89314c399fc65c701e014 Mon Sep 17 00:00:00 2001 From: Troels Knakkergaard Date: Mon, 16 Nov 2015 03:10:16 +0100 Subject: [PATCH] Add wxListCtrl::GetAlternateRowColour() Simple accessor matching the existing setter. Closes #17250. --- include/wx/listbase.h | 1 + interface/wx/listctrl.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/include/wx/listbase.h b/include/wx/listbase.h index 13f4bb8ec6..07e70447c8 100644 --- a/include/wx/listbase.h +++ b/include/wx/listbase.h @@ -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. diff --git a/interface/wx/listctrl.h b/interface/wx/listctrl.h index 93a46c3e6d..ccf1fbfb78 100644 --- a/interface/wx/listctrl.h +++ b/interface/wx/listctrl.h @@ -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