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