]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk1/brush.h
Fixed compilation error
[wxWidgets.git] / include / wx / gtk1 / brush.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: brush.h
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKBRUSHH__
12#define __GTKBRUSHH__
13
14#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
15#pragma interface
16#endif
17
18#include "wx/defs.h"
19#include "wx/object.h"
20#include "wx/string.h"
21#include "wx/gdiobj.h"
22#include "wx/bitmap.h"
23
24//-----------------------------------------------------------------------------
25// classes
26//-----------------------------------------------------------------------------
27
28class wxBrush;
29
30//-----------------------------------------------------------------------------
31// wxBrush
32//-----------------------------------------------------------------------------
33
34class wxBrush: public wxGDIObject
35{
36public:
37 wxBrush() { }
38
39 wxBrush( const wxColour &colour, int style = wxSOLID );
40 wxBrush( const wxBitmap &stippleBitmap );
41 ~wxBrush();
42
43 wxBrush( const wxBrush &brush )
44 : wxGDIObject()
45 { Ref(brush); }
46 wxBrush& operator = ( const wxBrush& brush ) { Ref(brush); return *this; }
47
48 bool Ok() const { return m_refData != NULL; }
49
50 bool operator == ( const wxBrush& brush ) const;
51 bool operator != (const wxBrush& brush) const { return !(*this == brush); }
52
53 int GetStyle() const;
54 wxColour &GetColour() const;
55 wxBitmap *GetStipple() const;
56
57 void SetColour( const wxColour& col );
58 void SetColour( unsigned char r, unsigned char g, unsigned char b );
59 void SetStyle( int style );
60 void SetStipple( const wxBitmap& stipple );
61
62private:
63 // ref counting code
64 virtual wxObjectRefData *CreateRefData() const;
65 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
66
67 DECLARE_DYNAMIC_CLASS(wxBrush)
68};
69
70#endif // __GTKBRUSHH__