]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/gtk1/brush.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
5 | // Id: $Id$ | |
6 | // Copyright: (c) 1998 Robert Roebling | |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | ||
11 | #ifndef __GTKBRUSHH__ | |
12 | #define __GTKBRUSHH__ | |
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_FWD_CORE wxBrush; | |
25 | ||
26 | //----------------------------------------------------------------------------- | |
27 | // wxBrush | |
28 | //----------------------------------------------------------------------------- | |
29 | ||
30 | class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase | |
31 | { | |
32 | public: | |
33 | wxBrush() { } | |
34 | ||
35 | wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID ); | |
36 | #if FUTURE_WXWIN_COMPATIBILITY_3_0 | |
37 | wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) ); | |
38 | #endif | |
39 | wxBrush( const wxBitmap &stippleBitmap ); | |
40 | virtual ~wxBrush(); | |
41 | ||
42 | bool operator==(const wxBrush& brush) const; | |
43 | bool operator!=(const wxBrush& brush) const { return !(*this == brush); } | |
44 | ||
45 | wxBrushStyle GetStyle() const; | |
46 | wxColour GetColour() const; | |
47 | wxBitmap *GetStipple() const; | |
48 | ||
49 | void SetColour( const wxColour& col ); | |
50 | void SetColour( unsigned char r, unsigned char g, unsigned char b ); | |
51 | void SetStyle( wxBrushStyle style ); | |
52 | void SetStipple( const wxBitmap& stipple ); | |
53 | ||
54 | #if FUTURE_WXWIN_COMPATIBILITY_3_0 | |
55 | wxDEPRECATED_FUTURE( void SetStyle(int style) ) | |
56 | { SetStyle((wxBrushStyle)style); } | |
57 | #endif | |
58 | ||
59 | private: | |
60 | virtual wxGDIRefData *CreateGDIRefData() const; | |
61 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
62 | ||
63 | DECLARE_DYNAMIC_CLASS(wxBrush) | |
64 | }; | |
65 | ||
66 | #endif // __GTKBRUSHH__ |