]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mgl/brush.h
setting an empty region shouldn't clear the clipping
[wxWidgets.git] / include / wx / mgl / brush.h
index fbfdd8df2a75648e304b0aea531756cda132e27c..7f7ab1a23979589820b4dea1dff264d7abc956a3 100644 (file)
@@ -32,7 +32,7 @@ class WXDLLEXPORT wxBrush;
 // wxBrush
 //-----------------------------------------------------------------------------
 
-class WXDLLEXPORT wxBrush: public wxGDIObject
+class WXDLLEXPORT wxBrush: public wxBrushBase
 {
 public:
     wxBrush() {}
@@ -45,13 +45,10 @@ public:
     bool operator != (const wxBrush& brush) const;
     bool Ok() const;
 
-    int GetStyle() const;
+    virtual int GetStyle() const;
     wxColour &GetColour() const;
     wxBitmap *GetStipple() const;
 
-    bool IsHatch() const
-        { return (GetStyle()>=wxBDIAGONAL_HATCH) && (GetStyle()<=wxVERTICAL_HATCH); }
-
     void SetColour(const wxColour& col);
     void SetColour(unsigned char r, unsigned char g, unsigned char b);
     void SetStyle(int style);