]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/brush.h
Add const to GetTargetSize()
[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
c89f5c02 29 bool Ok() const { return m_refData != NULL; }
ab9d0a8c 30
f6bcfd97 31 bool operator == ( const wxBrush& brush ) const;
c89f5c02 32 bool operator != (const wxBrush& brush) const { return !(*this == brush); }
8bbe427f 33
cb9d5bd0 34 virtual int GetStyle() const;
8bbe427f
VZ
35 wxColour &GetColour() const;
36 wxBitmap *GetStipple() const;
37
e55ad60e 38 void SetColour( const wxColour& col );
1a1498c0 39 void SetColour( unsigned char r, unsigned char g, unsigned char b );
e55ad60e
RR
40 void SetStyle( int style );
41 void SetStipple( const wxBitmap& stipple );
8bbe427f 42
6f02a879 43protected:
c89f5c02
RR
44 // ref counting code
45 virtual wxObjectRefData *CreateRefData() const;
46 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
ab9d0a8c 47
738f9e5a 48 DECLARE_DYNAMIC_CLASS(wxBrush)
c801d85f
KB
49};
50
0416c418 51#endif // _WX_GTK_BRUSH_H_