]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
46562151 | 2 | // Name: wx/gtk/brush.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
dbf858b5 | 5 | // Id: $Id$ |
01111366 | 6 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
0416c418 PC |
10 | #ifndef _WX_GTK_BRUSH_H_ |
11 | #define _WX_GTK_BRUSH_H_ | |
c801d85f | 12 | |
b5dbe15d VS |
13 | class WXDLLIMPEXP_FWD_CORE wxBitmap; |
14 | class WXDLLIMPEXP_FWD_CORE wxColour; | |
c801d85f KB |
15 | |
16 | //----------------------------------------------------------------------------- | |
17 | // wxBrush | |
18 | //----------------------------------------------------------------------------- | |
19 | ||
20123d49 | 20 | class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase |
c801d85f | 21 | { |
738f9e5a | 22 | public: |
c89f5c02 | 23 | wxBrush() { } |
ab9d0a8c | 24 | |
3e6858cd | 25 | wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID ); |
ac3688c0 FM |
26 | #if FUTURE_WXWIN_COMPATIBILITY_3_0 |
27 | wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) ); | |
28 | #endif | |
c801d85f | 29 | wxBrush( const wxBitmap &stippleBitmap ); |
d3c7fc99 | 30 | virtual ~wxBrush(); |
ab9d0a8c | 31 | |
8f884a0d VZ |
32 | bool operator==(const wxBrush& brush) const; |
33 | bool operator!=(const wxBrush& brush) const { return !(*this == brush); } | |
8bbe427f | 34 | |
231b9591 FM |
35 | wxBrushStyle GetStyle() const; |
36 | wxColour GetColour() const; | |
8bbe427f VZ |
37 | wxBitmap *GetStipple() const; |
38 | ||
e55ad60e | 39 | void SetColour( const wxColour& col ); |
1a1498c0 | 40 | void SetColour( unsigned char r, unsigned char g, unsigned char b ); |
3e6858cd | 41 | void SetStyle( wxBrushStyle style ); |
e55ad60e | 42 | void SetStipple( const wxBitmap& stipple ); |
8bbe427f | 43 | |
6f02a879 | 44 | protected: |
8f884a0d VZ |
45 | virtual wxGDIRefData *CreateGDIRefData() const; |
46 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
ab9d0a8c | 47 | |
738f9e5a | 48 | DECLARE_DYNAMIC_CLASS(wxBrush) |
c801d85f KB |
49 | }; |
50 | ||
0416c418 | 51 | #endif // _WX_GTK_BRUSH_H_ |