]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/brush.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[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
01111366 5// Copyright: (c) 1998 Robert Roebling
65571936 6// Licence: wxWindows licence
c801d85f
KB
7/////////////////////////////////////////////////////////////////////////////
8
9
10#ifndef __GTKBRUSHH__
11#define __GTKBRUSHH__
12
c801d85f
KB
13#include "wx/defs.h"
14#include "wx/object.h"
15#include "wx/string.h"
16#include "wx/gdiobj.h"
17#include "wx/bitmap.h"
18
19//-----------------------------------------------------------------------------
20// classes
21//-----------------------------------------------------------------------------
22
b5dbe15d 23class WXDLLIMPEXP_FWD_CORE wxBrush;
c801d85f
KB
24
25//-----------------------------------------------------------------------------
26// wxBrush
27//-----------------------------------------------------------------------------
28
20123d49 29class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
c801d85f 30{
738f9e5a 31public:
c89f5c02 32 wxBrush() { }
ab9d0a8c 33
3e6858cd 34 wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID );
ac3688c0
FM
35#if FUTURE_WXWIN_COMPATIBILITY_3_0
36 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
37#endif
c801d85f 38 wxBrush( const wxBitmap &stippleBitmap );
d3c7fc99 39 virtual ~wxBrush();
ab9d0a8c 40
8f884a0d
VZ
41 bool operator==(const wxBrush& brush) const;
42 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
8bbe427f 43
231b9591
FM
44 wxBrushStyle GetStyle() const;
45 wxColour GetColour() const;
8bbe427f
VZ
46 wxBitmap *GetStipple() const;
47
e55ad60e 48 void SetColour( const wxColour& col );
1a1498c0 49 void SetColour( unsigned char r, unsigned char g, unsigned char b );
3e6858cd 50 void SetStyle( wxBrushStyle style );
e55ad60e 51 void SetStipple( const wxBitmap& stipple );
8bbe427f 52
bc735a68
VZ
53#if FUTURE_WXWIN_COMPATIBILITY_3_0
54 wxDEPRECATED_FUTURE( void SetStyle(int style) )
55 { SetStyle((wxBrushStyle)style); }
56#endif
57
738f9e5a 58private:
8f884a0d
VZ
59 virtual wxGDIRefData *CreateGDIRefData() const;
60 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
ab9d0a8c 61
738f9e5a 62 DECLARE_DYNAMIC_CLASS(wxBrush)
c801d85f
KB
63};
64
65#endif // __GTKBRUSHH__