]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/brush.h
No real changes, just make wxWindow::CanScroll() virtual.
[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
01111366 5// Copyright: (c) 1998 Robert Roebling
65571936 6// Licence: wxWindows licence
c801d85f
KB
7/////////////////////////////////////////////////////////////////////////////
8
0416c418
PC
9#ifndef _WX_GTK_BRUSH_H_
10#define _WX_GTK_BRUSH_H_
c801d85f 11
b5dbe15d
VS
12class WXDLLIMPEXP_FWD_CORE wxBitmap;
13class WXDLLIMPEXP_FWD_CORE wxColour;
c801d85f
KB
14
15//-----------------------------------------------------------------------------
16// wxBrush
17//-----------------------------------------------------------------------------
18
20123d49 19class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
c801d85f 20{
738f9e5a 21public:
c89f5c02 22 wxBrush() { }
ab9d0a8c 23
3e6858cd 24 wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID );
ac3688c0
FM
25#if FUTURE_WXWIN_COMPATIBILITY_3_0
26 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
27#endif
c801d85f 28 wxBrush( const wxBitmap &stippleBitmap );
d3c7fc99 29 virtual ~wxBrush();
ab9d0a8c 30
8f884a0d
VZ
31 bool operator==(const wxBrush& brush) const;
32 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
8bbe427f 33
231b9591
FM
34 wxBrushStyle GetStyle() const;
35 wxColour GetColour() const;
8bbe427f
VZ
36 wxBitmap *GetStipple() const;
37
e55ad60e 38 void SetColour( const wxColour& col );
1a1498c0 39 void SetColour( unsigned char r, unsigned char g, unsigned char b );
3e6858cd 40 void SetStyle( wxBrushStyle style );
e55ad60e 41 void SetStipple( const wxBitmap& stipple );
8bbe427f 42
bc735a68
VZ
43#if FUTURE_WXWIN_COMPATIBILITY_3_0
44 wxDEPRECATED_FUTURE( void SetStyle(int style) )
45 { SetStyle((wxBrushStyle)style); }
46#endif
47
6f02a879 48protected:
8f884a0d
VZ
49 virtual wxGDIRefData *CreateGDIRefData() const;
50 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
ab9d0a8c 51
738f9e5a 52 DECLARE_DYNAMIC_CLASS(wxBrush)
c801d85f
KB
53};
54
0416c418 55#endif // _WX_GTK_BRUSH_H_