1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/brush.h
3 // Purpose: wxBrush class
4 // Author: David Elliott <dfe@cox.net>
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_COCOA_BRUSH_H__
12 #define __WX_COCOA_BRUSH_H__
14 #include "wx/gdicmn.h"
15 #include "wx/gdiobj.h"
16 #include "wx/bitmap.h"
18 class WXDLLIMPEXP_FWD_CORE wxBrush
;
20 // ========================================================================
22 // ========================================================================
23 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
25 DECLARE_DYNAMIC_CLASS(wxBrush
)
26 // ------------------------------------------------------------------------
28 // ------------------------------------------------------------------------
31 wxBrush(const wxColour
& col
, wxBrushStyle style
= wxBRUSHSTYLE_SOLID
);
32 #if FUTURE_WXWIN_COMPATIBILITY_3_0
33 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
35 wxBrush(const wxBitmap
& stipple
);
38 // ------------------------------------------------------------------------
40 // ------------------------------------------------------------------------
41 virtual void SetColour(const wxColour
& col
) ;
42 virtual void SetColour(unsigned char r
, unsigned char g
, unsigned char b
) ;
43 virtual void SetStyle(wxBrushStyle style
) ;
44 virtual void SetStipple(const wxBitmap
& stipple
) ;
47 bool operator == (const wxBrush
& brush
) const
48 { return m_refData
== brush
.m_refData
; }
49 bool operator != (const wxBrush
& brush
) const
50 { return m_refData
!= brush
.m_refData
; }
53 wxColour
GetColour() const;
54 virtual wxBrushStyle
GetStyle() const;
55 wxBitmap
*GetStipple() const;
57 #if FUTURE_WXWIN_COMPATIBILITY_3_0
58 wxDEPRECATED_FUTURE( void SetStyle(int style
) )
59 { SetStyle((wxBrushStyle
)style
); }
63 WX_NSColor
GetNSColor();
66 wxGDIRefData
*CreateGDIRefData() const;
67 wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
70 #endif // __WX_COCOA_BRUSH_H__