]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/brush.h
initial (not yet working) code for DirectFB port
[wxWidgets.git] / include / wx / dfb / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/brush.h
3 // Purpose: wxBrush class declaration
4 // Author: Vaclav Slavik
5 // Created: 2006-08-04
6 // RCS-ID: $Id$
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_DFB_BRUSH_H_
12 #define _WX_DFB_BRUSH_H_
13
14 #include "wx/defs.h"
15 #include "wx/object.h"
16 #include "wx/string.h"
17 #include "wx/gdiobj.h"
18 #include "wx/bitmap.h"
19
20 //-----------------------------------------------------------------------------
21 // classes
22 //-----------------------------------------------------------------------------
23
24 class WXDLLIMPEXP_CORE wxBitmap;
25 class WXDLLIMPEXP_CORE wxBrush;
26
27 //-----------------------------------------------------------------------------
28 // wxBrush
29 //-----------------------------------------------------------------------------
30
31 class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
32 {
33 public:
34 wxBrush() {}
35 wxBrush(const wxColour &colour, int style = wxSOLID);
36 wxBrush(const wxBitmap &stippleBitmap);
37
38 bool Ok() const;
39 bool operator==(const wxBrush& brush) const;
40 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
41
42 virtual int GetStyle() const;
43 wxColour &GetColour() const;
44 wxBitmap *GetStipple() const;
45
46 void SetColour(const wxColour& col);
47 void SetColour(unsigned char r, unsigned char g, unsigned char b);
48 void SetStyle(int style);
49 void SetStipple(const wxBitmap& stipple);
50
51 protected:
52 // ref counting code
53 virtual wxObjectRefData *CreateRefData() const;
54 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
55
56 DECLARE_DYNAMIC_CLASS(wxBrush)
57 };
58
59 #endif // _WX_DFB_BRUSH_H_