]>
Commit | Line | Data |
---|---|---|
ffecfa5a JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/palmos/brush.h | |
3 | // Purpose: wxBrush class | |
e1d63b79 | 4 | // Author: William Osborne - minimal working wxPalmOS port |
ffecfa5a JS |
5 | // Modified by: |
6 | // Created: 10/13/04 | |
e1d63b79 | 7 | // RCS-ID: $Id$ |
ffecfa5a JS |
8 | // Copyright: (c) William Osborne |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_BRUSH_H_ | |
13 | #define _WX_BRUSH_H_ | |
14 | ||
ffecfa5a JS |
15 | #include "wx/gdicmn.h" |
16 | #include "wx/gdiobj.h" | |
17 | #include "wx/bitmap.h" | |
18 | ||
19 | class WXDLLEXPORT wxBrush; | |
20 | ||
21 | // ---------------------------------------------------------------------------- | |
22 | // wxBrush | |
23 | // ---------------------------------------------------------------------------- | |
24 | ||
cb9d5bd0 | 25 | class WXDLLEXPORT wxBrush : public wxBrushBase |
ffecfa5a JS |
26 | { |
27 | public: | |
28 | wxBrush(); | |
29 | wxBrush(const wxColour& col, int style = wxSOLID); | |
30 | wxBrush(const wxBitmap& stipple); | |
31 | wxBrush(const wxBrush& brush) { Ref(brush); } | |
32 | virtual ~wxBrush(); | |
33 | ||
34 | virtual void SetColour(const wxColour& col); | |
1a1498c0 | 35 | virtual void SetColour(unsigned char r, unsigned char g, unsigned char b); |
ffecfa5a JS |
36 | virtual void SetStyle(int style); |
37 | virtual void SetStipple(const wxBitmap& stipple); | |
38 | ||
39 | wxBrush& operator=(const wxBrush& brush); | |
40 | bool operator==(const wxBrush& brush) const; | |
41 | bool operator!=(const wxBrush& brush) const { return !(*this == brush); } | |
42 | ||
43 | wxColour GetColour() const; | |
cb9d5bd0 | 44 | virtual int GetStyle() const; |
ffecfa5a JS |
45 | wxBitmap *GetStipple() const; |
46 | ||
47 | bool Ok() const { return m_refData != NULL; } | |
48 | ||
49 | // return the HBRUSH for this brush | |
50 | virtual WXHANDLE GetResourceHandle() const; | |
51 | ||
52 | protected: | |
53 | virtual wxObjectRefData *CreateRefData() const; | |
54 | virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const; | |
55 | ||
56 | private: | |
57 | DECLARE_DYNAMIC_CLASS(wxBrush) | |
58 | }; | |
59 | ||
60 | #endif | |
61 | // _WX_BRUSH_H_ |