]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/brush.h
added default style wxFRAME_TOOL_WINDOW to creation
[wxWidgets.git] / include / wx / x11 / brush.h
CommitLineData
83df96d6
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: brush.h
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
83df96d6
JS
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BRUSH_H_
13#define _WX_BRUSH_H_
14
15#ifdef __GNUG__
16#pragma interface "brush.h"
17#endif
18
19#include "wx/gdicmn.h"
20#include "wx/gdiobj.h"
21#include "wx/bitmap.h"
22
74dc5eb6
RR
23//-----------------------------------------------------------------------------
24// classes
25//-----------------------------------------------------------------------------
83df96d6 26
74dc5eb6 27class wxBrush;
83df96d6 28
74dc5eb6
RR
29//-----------------------------------------------------------------------------
30// wxBrush
31//-----------------------------------------------------------------------------
83df96d6 32
74dc5eb6 33class wxBrush: public wxGDIObject
83df96d6 34{
83df96d6 35public:
74dc5eb6 36 wxBrush() { }
83df96d6 37
74dc5eb6
RR
38 wxBrush( const wxColour &colour, int style );
39 wxBrush( const wxBitmap &stippleBitmap );
40 ~wxBrush();
83df96d6 41
74dc5eb6
RR
42 wxBrush( const wxBrush &brush ) { Ref(brush); }
43 wxBrush& operator = ( const wxBrush& brush ) { Ref(brush); return *this; }
83df96d6 44
74dc5eb6 45 bool Ok() const { return m_refData != NULL; }
83df96d6 46
74dc5eb6
RR
47 bool operator == ( const wxBrush& brush ) const;
48 bool operator != (const wxBrush& brush) const { return !(*this == brush); }
49
50 int GetStyle() const;
51 wxColour &GetColour() const;
52 wxBitmap *GetStipple() const;
53
54 void SetColour( const wxColour& col );
55 void SetColour( unsigned char r, unsigned char g, unsigned char b );
56 void SetStyle( int style );
57 void SetStipple( const wxBitmap& stipple );
58
59private:
60 // ref counting code
61 virtual wxObjectRefData *CreateRefData() const;
62 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
83df96d6 63
74dc5eb6 64 DECLARE_DYNAMIC_CLASS(wxBrush)
83df96d6
JS
65};
66
67#endif
68// _WX_BRUSH_H_