]>
Commit | Line | Data |
---|---|---|
32b8ec41 | 1 | ///////////////////////////////////////////////////////////////////////////// |
46562151 | 2 | // Name: wx/mgl/brush.h |
32b8ec41 VZ |
3 | // Purpose: |
4 | // Author: Vaclav Slavik | |
5 | // Id: $Id$ | |
52750c2e | 6 | // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) |
65571936 | 7 | // Licence: wxWindows licence |
32b8ec41 VZ |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
32b8ec41 VZ |
10 | #ifndef __WX_BRUSH_H__ |
11 | #define __WX_BRUSH_H__ | |
12 | ||
32b8ec41 VZ |
13 | #include "wx/defs.h" |
14 | #include "wx/object.h" | |
15 | #include "wx/string.h" | |
16 | #include "wx/gdiobj.h" | |
17 | #include "wx/bitmap.h" | |
18 | ||
19 | //----------------------------------------------------------------------------- | |
20 | // classes | |
21 | //----------------------------------------------------------------------------- | |
22 | ||
23 | class WXDLLEXPORT wxBitmap; | |
24 | class WXDLLEXPORT wxBrush; | |
25 | ||
26 | //----------------------------------------------------------------------------- | |
27 | // wxBrush | |
28 | //----------------------------------------------------------------------------- | |
29 | ||
cb9d5bd0 | 30 | class WXDLLEXPORT wxBrush: public wxBrushBase |
32b8ec41 VZ |
31 | { |
32 | public: | |
3cdd0895 | 33 | wxBrush() {} |
5b36366c | 34 | wxBrush(const wxColour &colour, int style = wxSOLID); |
32b8ec41 VZ |
35 | wxBrush(const wxBitmap &stippleBitmap); |
36 | wxBrush(const wxBrush &brush); | |
3cdd0895 | 37 | ~wxBrush() {} |
32b8ec41 VZ |
38 | wxBrush& operator = (const wxBrush& brush); |
39 | bool operator == (const wxBrush& brush) const; | |
40 | bool operator != (const wxBrush& brush) const; | |
41 | bool Ok() const; | |
42 | ||
cb9d5bd0 | 43 | virtual int GetStyle() const; |
32b8ec41 VZ |
44 | wxColour &GetColour() const; |
45 | wxBitmap *GetStipple() const; | |
46 | ||
47 | void SetColour(const wxColour& col); | |
1a1498c0 | 48 | void SetColour(unsigned char r, unsigned char g, unsigned char b); |
32b8ec41 VZ |
49 | void SetStyle(int style); |
50 | void SetStipple(const wxBitmap& stipple); | |
ab9d0a8c | 51 | |
32b8ec41 VZ |
52 | // implementation: |
53 | ||
32b8ec41 VZ |
54 | void* GetMaskPattern() const; |
55 | void* GetPixPattern() const; | |
56 | ||
6d7ee9e8 VS |
57 | protected: |
58 | // ref counting code | |
59 | virtual wxObjectRefData *CreateRefData() const; | |
60 | virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const; | |
61 | ||
32b8ec41 VZ |
62 | private: |
63 | DECLARE_DYNAMIC_CLASS(wxBrush) | |
64 | }; | |
65 | ||
66 | #endif // __WX_BRUSH_H__ |