]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_brush.i
A few minor corrections.
[wxWidgets.git] / wxPython / src / _brush.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _brush.i
3 // Purpose: SWIG interface for wxPen
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 7-July-1997
8 // RCS-ID: $Id$
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 // Not a %module
14
15
16 //---------------------------------------------------------------------------
17 %newgroup
18
19 class wxBrush : public wxGDIObject {
20 public:
21 wxBrush(const wxColour& colour, int style=wxSOLID);
22 ~wxBrush();
23
24 virtual void SetColour(const wxColour& col);
25 virtual void SetStyle(int style);
26 virtual void SetStipple(const wxBitmap& stipple);
27
28 wxColour GetColour() const;
29 int GetStyle() const;
30 wxBitmap *GetStipple() const;
31
32 bool Ok();
33
34 #ifdef __WXMAC__
35 short GetMacTheme();
36 void SetMacTheme(short macThemeBrush);
37 #endif
38
39 %pythoncode { def __nonzero__(self): return self.Ok() }
40 };
41
42 //---------------------------------------------------------------------------