]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/brush.h
introduce wxBrushStyle enum and replace 'int style' occurrences in wxBrush code with...
[wxWidgets.git] / include / wx / gtk / brush.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
46562151 2// Name: wx/gtk/brush.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
dbf858b5 5// Id: $Id$
01111366 6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
0416c418
PC
10#ifndef _WX_GTK_BRUSH_H_
11#define _WX_GTK_BRUSH_H_
c801d85f 12
b5dbe15d
VS
13class WXDLLIMPEXP_FWD_CORE wxBitmap;
14class WXDLLIMPEXP_FWD_CORE wxColour;
c801d85f
KB
15
16//-----------------------------------------------------------------------------
17// wxBrush
18//-----------------------------------------------------------------------------
19
20123d49 20class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
c801d85f 21{
738f9e5a 22public:
c89f5c02 23 wxBrush() { }
ab9d0a8c 24
3e6858cd 25 wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID );
c801d85f 26 wxBrush( const wxBitmap &stippleBitmap );
d3c7fc99 27 virtual ~wxBrush();
ab9d0a8c 28
8f884a0d
VZ
29 bool operator==(const wxBrush& brush) const;
30 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
8bbe427f 31
3e6858cd 32 virtual wxBrushStyle GetStyle() const;
8bbe427f
VZ
33 wxColour &GetColour() const;
34 wxBitmap *GetStipple() const;
35
e55ad60e 36 void SetColour( const wxColour& col );
1a1498c0 37 void SetColour( unsigned char r, unsigned char g, unsigned char b );
3e6858cd 38 void SetStyle( wxBrushStyle style );
e55ad60e 39 void SetStipple( const wxBitmap& stipple );
8bbe427f 40
6f02a879 41protected:
8f884a0d
VZ
42 virtual wxGDIRefData *CreateGDIRefData() const;
43 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
ab9d0a8c 44
738f9e5a 45 DECLARE_DYNAMIC_CLASS(wxBrush)
c801d85f
KB
46};
47
0416c418 48#endif // _WX_GTK_BRUSH_H_