]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/brush.h
Added automatic dialog scrolling ability
[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
8f884a0d 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
8f884a0d
VZ
38 bool operator==(const wxBrush& brush) const;
39 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
74dc5eb6 40
cb9d5bd0 41 virtual int GetStyle() const;
74dc5eb6
RR
42 wxColour &GetColour() const;
43 wxBitmap *GetStipple() const;
44
45 void SetColour( const wxColour& col );
1a1498c0 46 void SetColour( unsigned char r, unsigned char g, unsigned char b );
74dc5eb6
RR
47 void SetStyle( int style );
48 void SetStipple( const wxBitmap& stipple );
49
6f02a879 50protected:
8f884a0d
VZ
51 virtual wxGDIRefData *CreateGDIRefData() const;
52 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
ab9d0a8c 53
74dc5eb6 54 DECLARE_DYNAMIC_CLASS(wxBrush)
83df96d6
JS
55};
56
8f884a0d 57#endif // _WX_BRUSH_H_