]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/brush.h
wxToolTip
[wxWidgets.git] / include / wx / gtk / brush.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: brush.h
3// Purpose:
4// Author: Robert Roebling
dbf858b5 5// Id: $Id$
01111366 6// Copyright: (c) 1998 Robert Roebling
8bbe427f 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKBRUSHH__
12#define __GTKBRUSHH__
13
14#ifdef __GNUG__
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{
36 DECLARE_DYNAMIC_CLASS(wxBrush)
37
38 public:
39
8bbe427f 40 wxBrush();
debe6624 41 wxBrush( const wxColour &colour, int style );
c801d85f
KB
42 wxBrush( const wxBitmap &stippleBitmap );
43 wxBrush( const wxBrush &brush );
8bbe427f 44 ~wxBrush();
c801d85f
KB
45 wxBrush& operator = ( const wxBrush& brush );
46 bool operator == ( const wxBrush& brush );
47 bool operator != ( const wxBrush& brush );
8bbe427f
VZ
48 bool Ok() const;
49
50 int GetStyle() const;
51 wxColour &GetColour() const;
52 wxBitmap *GetStipple() const;
53
e55ad60e 54 void SetColour( const wxColour& col );
e55ad60e
RR
55 void SetColour( unsigned char r, unsigned char g, unsigned char b );
56 void SetStyle( int style );
57 void SetStipple( const wxBitmap& stipple );
8bbe427f
VZ
58
59 void Unshare();
60
c801d85f
KB
61 // no data :-)
62};
63
64#endif // __GTKBRUSHH__