]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/brush.h
Added wxDataViewBitmapCell
[wxWidgets.git] / include / wx / x11 / brush.h
CommitLineData
83df96d6 1/////////////////////////////////////////////////////////////////////////////
46562151 2// Name: wx/x11/brush.h
83df96d6 3// Purpose: wxBrush class
74dc5eb6 4// Author: Julian Smart, Robert Roebling
83df96d6
JS
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
74dc5eb6 8// Copyright: (c) Julian Smart, Robert Roebling
ab9d0a8c 9// Licence: wxWindows licence
83df96d6
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BRUSH_H_
13#define _WX_BRUSH_H_
14
83df96d6 15#include "wx/gdiobj.h"
83df96d6 16
74dc5eb6
RR
17//-----------------------------------------------------------------------------
18// classes
19//-----------------------------------------------------------------------------
83df96d6 20
968eb2ef
MW
21class WXDLLIMPEXP_CORE wxBrush;
22class WXDLLIMPEXP_CORE wxColour;
23class WXDLLIMPEXP_CORE wxBitmap;
83df96d6 24
74dc5eb6
RR
25//-----------------------------------------------------------------------------
26// wxBrush
27//-----------------------------------------------------------------------------
83df96d6 28
968eb2ef 29class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
83df96d6 30{
83df96d6 31public:
74dc5eb6 32 wxBrush() { }
ab9d0a8c 33
5b36366c 34 wxBrush( const wxColour &colour, int style = wxSOLID );
74dc5eb6 35 wxBrush( const wxBitmap &stippleBitmap );
d3c7fc99 36 virtual ~wxBrush();
ab9d0a8c 37
74dc5eb6 38 bool Ok() const { return m_refData != NULL; }
ab9d0a8c 39
74dc5eb6
RR
40 bool operator == ( const wxBrush& brush ) const;
41 bool operator != (const wxBrush& brush) const { return !(*this == brush); }
42
cb9d5bd0 43 virtual int GetStyle() const;
74dc5eb6
RR
44 wxColour &GetColour() const;
45 wxBitmap *GetStipple() const;
46
47 void SetColour( const wxColour& col );
1a1498c0 48 void SetColour( unsigned char r, unsigned char g, unsigned char b );
74dc5eb6
RR
49 void SetStyle( int style );
50 void SetStipple( const wxBitmap& stipple );
51
6f02a879 52protected:
74dc5eb6
RR
53 // ref counting code
54 virtual wxObjectRefData *CreateRefData() const;
55 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
ab9d0a8c 56
74dc5eb6 57 DECLARE_DYNAMIC_CLASS(wxBrush)
83df96d6
JS
58};
59
60#endif
61// _WX_BRUSH_H_