]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/brush.h
Add wxCairoLibrary (not yet built)
[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
b5dbe15d
VS
21class WXDLLIMPEXP_FWD_CORE wxBrush;
22class WXDLLIMPEXP_FWD_CORE wxColour;
23class WXDLLIMPEXP_FWD_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
b7cacb43
VZ
38 bool Ok() const { return IsOk(); }
39 bool IsOk() const { return m_refData != NULL; }
ab9d0a8c 40
74dc5eb6
RR
41 bool operator == ( const wxBrush& brush ) const;
42 bool operator != (const wxBrush& brush) const { return !(*this == brush); }
43
cb9d5bd0 44 virtual int GetStyle() const;
74dc5eb6
RR
45 wxColour &GetColour() const;
46 wxBitmap *GetStipple() const;
47
48 void SetColour( const wxColour& col );
1a1498c0 49 void SetColour( unsigned char r, unsigned char g, unsigned char b );
74dc5eb6
RR
50 void SetStyle( int style );
51 void SetStipple( const wxBitmap& stipple );
52
6f02a879 53protected:
74dc5eb6
RR
54 // ref counting code
55 virtual wxObjectRefData *CreateRefData() const;
56 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
ab9d0a8c 57
74dc5eb6 58 DECLARE_DYNAMIC_CLASS(wxBrush)
83df96d6
JS
59};
60
61#endif
62// _WX_BRUSH_H_