]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/brush.h
Ensure that the NSTableColumn width is that of its largest item to enable
[wxWidgets.git] / include / wx / x11 / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/brush.h
3 // Purpose: wxBrush class
4 // Author: Julian Smart, Robert Roebling
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart, Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_BRUSH_H_
13 #define _WX_BRUSH_H_
14
15 #include "wx/gdiobj.h"
16
17 //-----------------------------------------------------------------------------
18 // classes
19 //-----------------------------------------------------------------------------
20
21 class WXDLLIMPEXP_FWD_CORE wxBrush;
22 class WXDLLIMPEXP_FWD_CORE wxColour;
23 class WXDLLIMPEXP_FWD_CORE wxBitmap;
24
25 //-----------------------------------------------------------------------------
26 // wxBrush
27 //-----------------------------------------------------------------------------
28
29 class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
30 {
31 public:
32 wxBrush() { }
33
34 wxBrush( const wxColour &colour, int style = wxSOLID );
35 wxBrush( const wxBitmap &stippleBitmap );
36 virtual ~wxBrush();
37
38 bool operator==(const wxBrush& brush) const;
39 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
40
41 virtual int GetStyle() const;
42 wxColour &GetColour() const;
43 wxBitmap *GetStipple() const;
44
45 void SetColour( const wxColour& col );
46 void SetColour( unsigned char r, unsigned char g, unsigned char b );
47 void SetStyle( int style );
48 void SetStipple( const wxBitmap& stipple );
49
50 protected:
51 virtual wxGDIRefData *CreateGDIRefData() const;
52 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
53
54 DECLARE_DYNAMIC_CLASS(wxBrush)
55 };
56
57 #endif // _WX_BRUSH_H_