]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/brush.h
forward port from 2.8
[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
31class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
32{
33public:
34 wxBrush() {}
35 wxBrush(const wxColour &colour, int style = wxSOLID);
36 wxBrush(const wxBitmap &stippleBitmap);
37
b7cacb43
VZ
38 bool Ok() const { return IsOk(); }
39 bool IsOk() const;
b3c86150
VS
40 bool operator==(const wxBrush& brush) const;
41 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
42
43 virtual int GetStyle() const;
44 wxColour &GetColour() const;
45 wxBitmap *GetStipple() const;
46
47 void SetColour(const wxColour& col);
48 void SetColour(unsigned char r, unsigned char g, unsigned char b);
49 void SetStyle(int style);
50 void SetStipple(const wxBitmap& stipple);
51
52protected:
53 // ref counting code
54 virtual wxObjectRefData *CreateRefData() const;
55 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
56
57 DECLARE_DYNAMIC_CLASS(wxBrush)
58};
59
60#endif // _WX_DFB_BRUSH_H_