]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/brush.h
Don't use wxCriticalSection in wxWakeUpPipeMT if wxUSE_THREADS==0.
[wxWidgets.git] / include / wx / gtk1 / brush.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/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
10
11#ifndef __GTKBRUSHH__
12#define __GTKBRUSHH__
13
c801d85f
KB
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 24class WXDLLIMPEXP_FWD_CORE wxBrush;
c801d85f
KB
25
26//-----------------------------------------------------------------------------
27// wxBrush
28//-----------------------------------------------------------------------------
29
20123d49 30class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
c801d85f 31{
738f9e5a 32public:
c89f5c02 33 wxBrush() { }
ab9d0a8c 34
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
c801d85f 39 wxBrush( const wxBitmap &stippleBitmap );
d3c7fc99 40 virtual ~wxBrush();
ab9d0a8c 41
8f884a0d
VZ
42 bool operator==(const wxBrush& brush) const;
43 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
8bbe427f 44
231b9591
FM
45 wxBrushStyle GetStyle() const;
46 wxColour GetColour() const;
8bbe427f
VZ
47 wxBitmap *GetStipple() const;
48
e55ad60e 49 void SetColour( const wxColour& col );
1a1498c0 50 void SetColour( unsigned char r, unsigned char g, unsigned char b );
3e6858cd 51 void SetStyle( wxBrushStyle style );
e55ad60e 52 void SetStipple( const wxBitmap& stipple );
8bbe427f 53
bc735a68
VZ
54#if FUTURE_WXWIN_COMPATIBILITY_3_0
55 wxDEPRECATED_FUTURE( void SetStyle(int style) )
56 { SetStyle((wxBrushStyle)style); }
57#endif
58
738f9e5a 59private:
8f884a0d
VZ
60 virtual wxGDIRefData *CreateGDIRefData() const;
61 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
ab9d0a8c 62
738f9e5a 63 DECLARE_DYNAMIC_CLASS(wxBrush)
c801d85f
KB
64};
65
66#endif // __GTKBRUSHH__