X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab9d0a8ca3d306898d92960ecfaefb8c1191b18a..90b78a567f3271fede518e42de3f90eef10a3fdb:/include/wx/mac/carbon/brush.h?ds=sidebyside diff --git a/include/wx/mac/carbon/brush.h b/include/wx/mac/carbon/brush.h index 6f915f9d8f..d5c3e5be12 100644 --- a/include/wx/mac/carbon/brush.h +++ b/include/wx/mac/carbon/brush.h @@ -30,7 +30,7 @@ typedef enum } wxMacBrushKind ; // Brush -class WXDLLEXPORT wxBrush: public wxGDIObject +class WXDLLEXPORT wxBrush: public wxBrushBase { DECLARE_DYNAMIC_CLASS(wxBrush) @@ -40,7 +40,7 @@ public: wxBrush(const wxColour& col, int style = wxSOLID); wxBrush(const wxBitmap& stipple); wxBrush(const wxBrush& brush) - : wxGDIObject() + : wxBrushBase() { Ref(brush); } ~wxBrush(); @@ -63,12 +63,9 @@ public: unsigned long MacGetThemeBackground(WXRECTPTR extent) const ; short MacGetTheme() const ; wxColour& GetColour() const ; - int GetStyle() const ; + virtual int GetStyle() const ; wxBitmap *GetStipple() const ; - bool IsHatch() const - { return (GetStyle()>=wxBDIAGONAL_HATCH) && (GetStyle()<=wxVERTICAL_HATCH); } - virtual bool Ok() const { return (m_refData != NULL) ; } // Implementation