]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/brush.cpp
use xdg-open in wxLaunchDefaultBrowser() on Unix if available
[wxWidgets.git] / src / dfb / brush.cpp
index 93209e3362ec4f1a649bb335b00afc0025b26a48..6d310fc0bd2c24e7e553c3c67ec2f5ce05fb9bfc 100644 (file)
@@ -26,7 +26,7 @@
 // wxBrush
 //-----------------------------------------------------------------------------
 
-class wxBrushRefData: public wxObjectRefData
+class wxBrushRefData : public wxGDIRefData
 {
 public:
     wxBrushRefData(const wxColour& clr = wxNullColour, int style = wxSOLID)
@@ -41,6 +41,8 @@ public:
         m_style = data.m_style;
     }
 
+    virtual bool IsOk() const { return m_colour.IsOk(); }
+
     void SetStyle(int style)
     {
         if ( style != wxSOLID && style != wxTRANSPARENT )
@@ -80,11 +82,6 @@ bool wxBrush::operator==(const wxBrush& brush) const
     return m_refData == brush.m_refData;
 }
 
-bool wxBrush::IsOk() const
-{
-    return ((m_refData) && M_BRUSHDATA->m_colour.Ok());
-}
-
 int wxBrush::GetStyle() const
 {
     if (m_refData == NULL)
@@ -136,12 +133,12 @@ void wxBrush::SetStipple(const wxBitmap& WXUNUSED(stipple))
     wxFAIL_MSG( wxT("brushes with stipple bitmaps not implemented") );
 }
 
-wxObjectRefData *wxBrush::CreateRefData() const
+wxGDIRefData *wxBrush::CreateGDIRefData() const
 {
     return new wxBrushRefData;
 }
 
-wxObjectRefData *wxBrush::CloneRefData(const wxObjectRefData *data) const
+wxGDIRefData *wxBrush::CloneGDIRefData(const wxGDIRefData *data) const
 {
     return new wxBrushRefData(*(wxBrushRefData *)data);
 }