]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/brush.h
added wxBookCtrl::ChangeSelection() which is the same as SetSelection() but doesn...
[wxWidgets.git] / include / wx / gtk / brush.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/brush.h
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_GTK_BRUSH_H_
11#define _WX_GTK_BRUSH_H_
12
13class WXDLLIMPEXP_CORE wxBitmap;
14class WXDLLIMPEXP_CORE wxColour;
15
16//-----------------------------------------------------------------------------
17// wxBrush
18//-----------------------------------------------------------------------------
19
20class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
21{
22public:
23 wxBrush() { }
24
25 wxBrush( const wxColour &colour, int style = wxSOLID );
26 wxBrush( const wxBitmap &stippleBitmap );
27 virtual ~wxBrush();
28
29 bool Ok() const { return m_refData != NULL; }
30
31 bool operator == ( const wxBrush& brush ) const;
32 bool operator != (const wxBrush& brush) const { return !(*this == brush); }
33
34 virtual int GetStyle() const;
35 wxColour &GetColour() const;
36 wxBitmap *GetStipple() const;
37
38 void SetColour( const wxColour& col );
39 void SetColour( unsigned char r, unsigned char g, unsigned char b );
40 void SetStyle( int style );
41 void SetStipple( const wxBitmap& stipple );
42
43protected:
44 // ref counting code
45 virtual wxObjectRefData *CreateRefData() const;
46 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
47
48 DECLARE_DYNAMIC_CLASS(wxBrush)
49};
50
51#endif // _WX_GTK_BRUSH_H_