]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/brush.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / dfb / brush.h
CommitLineData
b3c86150
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/dfb/brush.h
3// Purpose: wxBrush class declaration
4// Author: Vaclav Slavik
5// Created: 2006-08-04
b3c86150
VS
6// Copyright: (c) 2006 REA Elektronik GmbH
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_DFB_BRUSH_H_
11#define _WX_DFB_BRUSH_H_
12
13#include "wx/defs.h"
14#include "wx/object.h"
15#include "wx/string.h"
16#include "wx/gdiobj.h"
17#include "wx/bitmap.h"
18
19//-----------------------------------------------------------------------------
20// classes
21//-----------------------------------------------------------------------------
22
b5dbe15d
VS
23class WXDLLIMPEXP_FWD_CORE wxBitmap;
24class WXDLLIMPEXP_FWD_CORE wxBrush;
b3c86150
VS
25
26//-----------------------------------------------------------------------------
27// wxBrush
28//-----------------------------------------------------------------------------
29
8f884a0d 30class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
b3c86150
VS
31{
32public:
33 wxBrush() {}
3e6858cd 34 wxBrush(const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
ac3688c0
FM
35#if FUTURE_WXWIN_COMPATIBILITY_3_0
36 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
37#endif
b3c86150
VS
38 wxBrush(const wxBitmap &stippleBitmap);
39
b3c86150
VS
40 bool operator==(const wxBrush& brush) const;
41 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
42
231b9591
FM
43 wxBrushStyle GetStyle() const;
44 wxColour GetColour() const;
b3c86150
VS
45 wxBitmap *GetStipple() const;
46
47 void SetColour(const wxColour& col);
48 void SetColour(unsigned char r, unsigned char g, unsigned char b);
3e6858cd 49 void SetStyle(wxBrushStyle style);
b3c86150
VS
50 void SetStipple(const wxBitmap& stipple);
51
bc735a68
VZ
52#if FUTURE_WXWIN_COMPATIBILITY_3_0
53 wxDEPRECATED_FUTURE( void SetStyle(int style) )
54 { SetStyle((wxBrushStyle)style); }
55#endif
56
b3c86150 57protected:
8f884a0d
VZ
58 virtual wxGDIRefData *CreateGDIRefData() const;
59 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
b3c86150
VS
60
61 DECLARE_DYNAMIC_CLASS(wxBrush)
62};
63
64#endif // _WX_DFB_BRUSH_H_