X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..09b895cb4a954494063eb17d3dc302a654fd99e5:/include/wx/cocoa/brush.h?ds=sidebyside diff --git a/include/wx/cocoa/brush.h b/include/wx/cocoa/brush.h index a7639fc998..965e35f109 100644 --- a/include/wx/cocoa/brush.h +++ b/include/wx/cocoa/brush.h @@ -16,12 +16,12 @@ #include "wx/gdiobj.h" #include "wx/bitmap.h" -class WXDLLEXPORT wxBrush; +class WXDLLIMPEXP_FWD_CORE wxBrush; // ======================================================================== // wxBrush // ======================================================================== -class WXDLLEXPORT wxBrush: public wxBrushBase +class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase { DECLARE_DYNAMIC_CLASS(wxBrush) // ------------------------------------------------------------------------ @@ -29,7 +29,10 @@ class WXDLLEXPORT wxBrush: public wxBrushBase // ------------------------------------------------------------------------ public: wxBrush(); - wxBrush(const wxColour& col, int style = wxSOLID); + wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID); +#if FUTURE_WXWIN_COMPATIBILITY_3_0 + wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) ); +#endif wxBrush(const wxBitmap& stipple); virtual ~wxBrush(); @@ -38,7 +41,7 @@ public: // ------------------------------------------------------------------------ virtual void SetColour(const wxColour& col) ; virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ; - virtual void SetStyle(int style) ; + virtual void SetStyle(wxBrushStyle style) ; virtual void SetStipple(const wxBitmap& stipple) ; // comparison @@ -49,18 +52,15 @@ public: // accessors wxColour GetColour() const; - virtual int GetStyle() const; + virtual wxBrushStyle GetStyle() const; wxBitmap *GetStipple() const; - virtual bool Ok() const - { return (m_refData != NULL); } - - // wxObjectRefData - wxObjectRefData *CreateRefData() const; - wxObjectRefData *CloneRefData(const wxObjectRefData *data) const; - // wxCocoa WX_NSColor GetNSColor(); + +protected: + wxGDIRefData *CreateGDIRefData() const; + wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; }; #endif // __WX_COCOA_BRUSH_H__