]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/brush.h
Correct wxImage::Size() again; add unit tests for it.
[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
6// RCS-ID: $Id$
7// Copyright: (c) 2006 REA Elektronik GmbH
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_DFB_BRUSH_H_
12#define _WX_DFB_BRUSH_H_
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
b5dbe15d
VS
24class WXDLLIMPEXP_FWD_CORE wxBitmap;
25class WXDLLIMPEXP_FWD_CORE wxBrush;
b3c86150
VS
26
27//-----------------------------------------------------------------------------
28// wxBrush
29//-----------------------------------------------------------------------------
30
8f884a0d 31class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
b3c86150
VS
32{
33public:
34 wxBrush() {}
3e6858cd 35 wxBrush(const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
ac3688c0
FM
36#if FUTURE_WXWIN_COMPATIBILITY_3_0
37 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
38#endif
b3c86150
VS
39 wxBrush(const wxBitmap &stippleBitmap);
40
b3c86150
VS
41 bool operator==(const wxBrush& brush) const;
42 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
43
231b9591
FM
44 wxBrushStyle GetStyle() const;
45 wxColour GetColour() const;
b3c86150
VS
46 wxBitmap *GetStipple() const;
47
48 void SetColour(const wxColour& col);
49 void SetColour(unsigned char r, unsigned char g, unsigned char b);
3e6858cd 50 void SetStyle(wxBrushStyle style);
b3c86150
VS
51 void SetStipple(const wxBitmap& stipple);
52
bc735a68
VZ
53#if FUTURE_WXWIN_COMPATIBILITY_3_0
54 wxDEPRECATED_FUTURE( void SetStyle(int style) )
55 { SetStyle((wxBrushStyle)style); }
56#endif
57
b3c86150 58protected:
8f884a0d
VZ
59 virtual wxGDIRefData *CreateGDIRefData() const;
60 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
b3c86150
VS
61
62 DECLARE_DYNAMIC_CLASS(wxBrush)
63};
64
65#endif // _WX_DFB_BRUSH_H_