]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/brush.h
Added wxPGChoices::Copy(), tweaked related documentation
[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 );
ac3688c0
FM
26#if FUTURE_WXWIN_COMPATIBILITY_3_0
27 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
28#endif
c801d85f 29 wxBrush( const wxBitmap &stippleBitmap );
d3c7fc99 30 virtual ~wxBrush();
ab9d0a8c 31
8f884a0d
VZ
32 bool operator==(const wxBrush& brush) const;
33 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
8bbe427f 34
231b9591
FM
35 wxBrushStyle GetStyle() const;
36 wxColour GetColour() const;
8bbe427f
VZ
37 wxBitmap *GetStipple() const;
38
e55ad60e 39 void SetColour( const wxColour& col );
1a1498c0 40 void SetColour( unsigned char r, unsigned char g, unsigned char b );
3e6858cd 41 void SetStyle( wxBrushStyle style );
e55ad60e 42 void SetStipple( const wxBitmap& stipple );
8bbe427f 43
bc735a68
VZ
44#if FUTURE_WXWIN_COMPATIBILITY_3_0
45 wxDEPRECATED_FUTURE( void SetStyle(int style) )
46 { SetStyle((wxBrushStyle)style); }
47#endif
48
6f02a879 49protected:
8f884a0d
VZ
50 virtual wxGDIRefData *CreateGDIRefData() const;
51 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
ab9d0a8c 52
738f9e5a 53 DECLARE_DYNAMIC_CLASS(wxBrush)
c801d85f
KB
54};
55
0416c418 56#endif // _WX_GTK_BRUSH_H_