]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/brush.h
Removed redundant code
[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
0416c418
PC
13class WXDLLIMPEXP_CORE wxBitmap;
14class WXDLLIMPEXP_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
5b36366c 25 wxBrush( const wxColour &colour, int style = wxSOLID );
c801d85f 26 wxBrush( const wxBitmap &stippleBitmap );
d3c7fc99 27 virtual ~wxBrush();
ab9d0a8c 28
b7cacb43
VZ
29 bool Ok() const { return IsOk(); }
30 bool IsOk() const { return m_refData != NULL; }
ab9d0a8c 31
f6bcfd97 32 bool operator == ( const wxBrush& brush ) const;
c89f5c02 33 bool operator != (const wxBrush& brush) const { return !(*this == brush); }
8bbe427f 34
cb9d5bd0 35 virtual int GetStyle() const;
8bbe427f
VZ
36 wxColour &GetColour() const;
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 );
e55ad60e
RR
41 void SetStyle( int style );
42 void SetStipple( const wxBitmap& stipple );
8bbe427f 43
6f02a879 44protected:
c89f5c02
RR
45 // ref counting code
46 virtual wxObjectRefData *CreateRefData() const;
47 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
ab9d0a8c 48
738f9e5a 49 DECLARE_DYNAMIC_CLASS(wxBrush)
c801d85f
KB
50};
51
0416c418 52#endif // _WX_GTK_BRUSH_H_