+class WXDLLEXPORT wxBrushRefData: public wxGDIRefData
+{
+public:
+ wxBrushRefData(const wxColour& colour = wxNullColour, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
+ wxBrushRefData(const wxBitmap& stipple);
+ wxBrushRefData(const wxBrushRefData& data);
+ virtual ~wxBrushRefData();
+
+ bool operator==(const wxBrushRefData& data) const;
+
+ const wxColour& GetColour() const { return m_colour; }
+ wxBrushStyle GetStyle() const { return m_style; }
+ wxBitmap *GetStipple() { return &m_stipple; }
+
+ void SetColour(const wxColour& colour) { m_colour = colour; }
+ void SetStyle(wxBrushStyle style) { m_style = style; }
+ void SetStipple(const wxBitmap& stipple) { DoSetStipple(stipple); }
+
+protected:
+ void DoSetStipple(const wxBitmap& stipple);
+
+ wxBitmap m_stipple;
+ wxColour m_colour;
+ wxBrushStyle m_style;
+};
+
+#define M_BRUSHDATA ((wxBrushRefData *)m_refData)
+
+wxBrushRefData::wxBrushRefData(const wxColour& colour, wxBrushStyle style)
+ : m_colour(colour), m_style( style )