]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/brush.h
adding CoreText implementation
[wxWidgets.git] / include / wx / mac / carbon / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/brush.h
3 // Purpose: wxBrush class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_BRUSH_H_
13 #define _WX_BRUSH_H_
14
15 #include "wx/gdicmn.h"
16 #include "wx/gdiobj.h"
17 #include "wx/bitmap.h"
18
19 class WXDLLIMPEXP_FWD_CORE wxBrush;
20
21 // Brush
22 class WXDLLEXPORT wxBrush: public wxBrushBase
23 {
24 public:
25 wxBrush();
26 wxBrush(short macThemeBrush ) ;
27 wxBrush(const wxColour& col, int style = wxSOLID);
28 wxBrush(const wxBitmap& stipple);
29 virtual ~wxBrush();
30
31 virtual void SetColour(const wxColour& col) ;
32 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
33 virtual void SetStyle(int style) ;
34 virtual void SetStipple(const wxBitmap& stipple) ;
35
36 bool operator == (const wxBrush& brush) const;
37 bool operator != (const wxBrush& brush) const
38 { return !(*this == brush); }
39
40 const wxColour& GetColour() const ;
41 virtual int GetStyle() const ;
42 wxBitmap *GetStipple() const ;
43
44 virtual bool Ok() const { return IsOk(); }
45 virtual bool IsOk() const { return (m_refData != NULL) ; }
46
47 protected:
48 virtual wxObjectRefData *CreateRefData() const;
49 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
50 private:
51 DECLARE_DYNAMIC_CLASS(wxBrush)
52 };
53
54 #endif
55 // _WX_BRUSH_H_