X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab9d0a8ca3d306898d92960ecfaefb8c1191b18a..413baa20a1d96d2e886bffc0b06ff97f6d8c472b:/include/wx/gtk/brush.h?ds=sidebyside diff --git a/include/wx/gtk/brush.h b/include/wx/gtk/brush.h index 52953d6a13..144bb4a1cb 100644 --- a/include/wx/gtk/brush.h +++ b/include/wx/gtk/brush.h @@ -31,7 +31,7 @@ class wxBrush; // wxBrush //----------------------------------------------------------------------------- -class wxBrush: public wxGDIObject +class wxBrush: public wxBrushBase { public: wxBrush() { } @@ -41,7 +41,7 @@ public: ~wxBrush(); wxBrush( const wxBrush &brush ) - : wxGDIObject() + : wxBrushBase() { Ref(brush); } wxBrush& operator = ( const wxBrush& brush ) { Ref(brush); return *this; } @@ -50,13 +50,10 @@ public: bool operator == ( const wxBrush& brush ) const; bool operator != (const wxBrush& brush) const { return !(*this == brush); } - 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 );