1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/brush.h
3 // Purpose: wxBrush class
4 // Author: David Elliott <dfe@cox.net>
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_BRUSH_H__
13 #define __WX_COCOA_BRUSH_H__
15 #include "wx/gdicmn.h"
16 #include "wx/gdiobj.h"
17 #include "wx/bitmap.h"
19 class WXDLLIMPEXP_FWD_CORE wxBrush
;
21 // ========================================================================
23 // ========================================================================
24 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
26 DECLARE_DYNAMIC_CLASS(wxBrush
)
27 // ------------------------------------------------------------------------
29 // ------------------------------------------------------------------------
32 wxBrush(const wxColour
& col
, wxBrushStyle style
= wxBRUSHSTYLE_SOLID
);
33 #if FUTURE_WXWIN_COMPATIBILITY_3_0
34 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
36 wxBrush(const wxBitmap
& stipple
);
39 // ------------------------------------------------------------------------
41 // ------------------------------------------------------------------------
42 virtual void SetColour(const wxColour
& col
) ;
43 virtual void SetColour(unsigned char r
, unsigned char g
, unsigned char b
) ;
44 virtual void SetStyle(wxBrushStyle style
) ;
45 virtual void SetStipple(const wxBitmap
& stipple
) ;
48 bool operator == (const wxBrush
& brush
) const
49 { return m_refData
== brush
.m_refData
; }
50 bool operator != (const wxBrush
& brush
) const
51 { return m_refData
!= brush
.m_refData
; }
54 wxColour
GetColour() const;
55 virtual wxBrushStyle
GetStyle() const;
56 wxBitmap
*GetStipple() const;
59 WX_NSColor
GetNSColor();
62 wxGDIRefData
*CreateGDIRefData() const;
63 wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
66 #endif // __WX_COCOA_BRUSH_H__