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