+// ----------------------------------------------------------------------------
+// wxBrush accessors
+// ----------------------------------------------------------------------------
+
+wxColour wxBrush::GetColour() const
+{
+ wxCHECK_MSG( IsOk(), wxNullColour, wxT("invalid brush") );
+
+ return M_BRUSHDATA->m_vColour;
+}
+
+wxBrushStyle wxBrush::GetStyle() const
+{
+ wxCHECK_MSG( IsOk(), wxBRUSHSTYLE_INVALID, wxT("invalid brush") );
+
+ return M_BRUSHDATA->m_nStyle;
+}
+
+wxBitmap *wxBrush::GetStipple() const
+{
+ wxCHECK_MSG( IsOk(), NULL, wxT("invalid brush") );
+
+ return &(M_BRUSHDATA->m_vStipple);
+}
+
+int wxBrush::GetPS() const
+{
+ wxCHECK_MSG( IsOk(), 0, wxT("invalid brush") );
+
+ return M_BRUSHDATA->m_hBrush;
+}
+