]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk1/brush.h
fix typos and update MSW code to use new wxPENSTYLE_* enum values
[wxWidgets.git] / include / wx / gtk1 / brush.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk1/brush.h
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKBRUSHH__
12#define __GTKBRUSHH__
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
24class WXDLLIMPEXP_FWD_CORE wxBrush;
25
26//-----------------------------------------------------------------------------
27// wxBrush
28//-----------------------------------------------------------------------------
29
30class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
31{
32public:
33 wxBrush() { }
34
35 wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID );
36 wxBrush( const wxBitmap &stippleBitmap );
37 virtual ~wxBrush();
38
39 bool operator==(const wxBrush& brush) const;
40 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
41
42 virtual wxBrushStyle GetStyle() const;
43 wxColour &GetColour() const;
44 wxBitmap *GetStipple() const;
45
46 void SetColour( const wxColour& col );
47 void SetColour( unsigned char r, unsigned char g, unsigned char b );
48 void SetStyle( wxBrushStyle style );
49 void SetStipple( const wxBitmap& stipple );
50
51private:
52 virtual wxGDIRefData *CreateGDIRefData() const;
53 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
54
55 DECLARE_DYNAMIC_CLASS(wxBrush)
56};
57
58#endif // __GTKBRUSHH__