]>
Commit | Line | Data |
---|---|---|
2bda0e17 | 1 | ///////////////////////////////////////////////////////////////////////////// |
cafbad8f | 2 | // Name: wx/msw/brush.h |
2bda0e17 KB |
3 | // Purpose: wxBrush class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
bbcdf8bc | 7 | // Copyright: (c) Julian Smart |
65571936 | 8 | // Licence: wxWindows licence |
2bda0e17 KB |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
bbcdf8bc JS |
11 | #ifndef _WX_BRUSH_H_ |
12 | #define _WX_BRUSH_H_ | |
2bda0e17 | 13 | |
b5dbe15d | 14 | class WXDLLIMPEXP_FWD_CORE wxBrush; |
6ffb03be FM |
15 | class WXDLLIMPEXP_FWD_CORE wxColour; |
16 | class WXDLLIMPEXP_FWD_CORE wxBitmap; | |
2bda0e17 | 17 | |
cafbad8f VZ |
18 | // ---------------------------------------------------------------------------- |
19 | // wxBrush | |
20 | // ---------------------------------------------------------------------------- | |
21 | ||
53a2db12 | 22 | class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase |
2bda0e17 | 23 | { |
2bda0e17 | 24 | public: |
cafbad8f | 25 | wxBrush(); |
3e6858cd | 26 | wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID); |
ac3688c0 FM |
27 | #if FUTURE_WXWIN_COMPATIBILITY_3_0 |
28 | wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) ); | |
29 | #endif | |
cafbad8f | 30 | wxBrush(const wxBitmap& stipple); |
cafbad8f | 31 | virtual ~wxBrush(); |
2bda0e17 | 32 | |
cafbad8f | 33 | virtual void SetColour(const wxColour& col); |
1a1498c0 | 34 | virtual void SetColour(unsigned char r, unsigned char g, unsigned char b); |
3e6858cd | 35 | virtual void SetStyle(wxBrushStyle style); |
cafbad8f | 36 | virtual void SetStipple(const wxBitmap& stipple); |
2bda0e17 | 37 | |
cafbad8f VZ |
38 | bool operator==(const wxBrush& brush) const; |
39 | bool operator!=(const wxBrush& brush) const { return !(*this == brush); } | |
2bda0e17 | 40 | |
cafbad8f | 41 | wxColour GetColour() const; |
231b9591 | 42 | wxBrushStyle GetStyle() const; |
cafbad8f | 43 | wxBitmap *GetStipple() const; |
2bda0e17 | 44 | |
bc735a68 VZ |
45 | #if FUTURE_WXWIN_COMPATIBILITY_3_0 |
46 | wxDEPRECATED_FUTURE( void SetStyle(int style) ) | |
47 | { SetStyle((wxBrushStyle)style); } | |
48 | #endif | |
49 | ||
2b5f62a0 VZ |
50 | // return the HBRUSH for this brush |
51 | virtual WXHANDLE GetResourceHandle() const; | |
2bda0e17 | 52 | |
cafbad8f | 53 | protected: |
8f884a0d VZ |
54 | virtual wxGDIRefData *CreateGDIRefData() const; |
55 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
2bda0e17 | 56 | |
cafbad8f VZ |
57 | private: |
58 | DECLARE_DYNAMIC_CLASS(wxBrush) | |
2bda0e17 KB |
59 | }; |
60 | ||
8f884a0d | 61 | #endif // _WX_BRUSH_H_ |