+#include "wx/mac/private.h"
+
+IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject)
+
+class WXDLLEXPORT wxBrushRefData: public wxGDIRefData
+{
+public:
+ wxBrushRefData(const wxColour& colour = wxNullColour, int style = wxSOLID);
+ wxBrushRefData(const wxBitmap& stipple);
+ wxBrushRefData(const wxBrushRefData& data);
+ virtual ~wxBrushRefData();
+
+ bool operator==(const wxBrushRefData& data) const;
+
+ const wxColour& GetColour() const { return m_colour; }
+ int GetStyle() const { return m_style; }
+ wxBitmap *GetStipple() { return &m_stipple; }
+
+ void SetColour(const wxColour& colour) { m_colour = colour; }
+ void SetStyle(int style) { m_style = style; }
+ void SetStipple(const wxBitmap& stipple) { DoSetStipple(stipple); }
+
+protected:
+ void DoSetStipple(const wxBitmap& stipple);
+
+ wxBitmap m_stipple ;
+ wxColour m_colour;
+ int m_style;
+};
+
+#define M_BRUSHDATA ((wxBrushRefData *)m_refData)
+
+wxBrushRefData::wxBrushRefData(const wxColour& colour, int style)
+ : m_colour(colour), m_style( style )