]>
Commit | Line | Data |
---|---|---|
8cf73271 | 1 | ///////////////////////////////////////////////////////////////////////////// |
46562151 | 2 | // Name: wx/mac/carbon/brush.h |
8cf73271 SC |
3 | // Purpose: wxBrush class |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 1998-01-01 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Stefan Csomor | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_BRUSH_H_ | |
13 | #define _WX_BRUSH_H_ | |
14 | ||
8cf73271 SC |
15 | #include "wx/gdicmn.h" |
16 | #include "wx/gdiobj.h" | |
17 | #include "wx/bitmap.h" | |
18 | ||
b5dbe15d | 19 | class WXDLLIMPEXP_FWD_CORE wxBrush; |
8cf73271 | 20 | |
8cf73271 | 21 | // Brush |
cb9d5bd0 | 22 | class WXDLLEXPORT wxBrush: public wxBrushBase |
8cf73271 | 23 | { |
8f884a0d | 24 | public: |
ab9d0a8c | 25 | wxBrush(); |
3e6858cd | 26 | wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID); |
82c5e9ab FM |
27 | #if FUTURE_WXWIN_COMPATIBILITY_3_0 |
28 | wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) ); | |
29 | #endif | |
ab9d0a8c | 30 | wxBrush(const wxBitmap& stipple); |
d3c7fc99 | 31 | virtual ~wxBrush(); |
ab9d0a8c | 32 | |
46562151 | 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) ; |
ab9d0a8c | 36 | virtual void SetStipple(const wxBitmap& stipple) ; |
ab9d0a8c | 37 | |
8f884a0d VZ |
38 | bool operator==(const wxBrush& brush) const; |
39 | bool operator!=(const wxBrush& brush) const { return !(*this == brush); } | |
ab9d0a8c | 40 | |
850df2d7 | 41 | const wxColour& GetColour() const ; |
3e6858cd | 42 | virtual wxBrushStyle GetStyle() const ; |
ab9d0a8c WS |
43 | wxBitmap *GetStipple() const ; |
44 | ||
850df2d7 | 45 | protected: |
8f884a0d VZ |
46 | virtual wxGDIRefData *CreateGDIRefData() const; |
47 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
48 | ||
83dcd781 | 49 | private: |
8f884a0d | 50 | DECLARE_DYNAMIC_CLASS(wxBrush) |
8cf73271 SC |
51 | }; |
52 | ||
8f884a0d | 53 | #endif // _WX_BRUSH_H_ |