]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_brush.i
Use a compatible bitmap if a depth of -1 is given
[wxWidgets.git] / wxPython / src / _brush.i
CommitLineData
d14a1e28
RD
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
1e0c8722
RD
19DocStr(wxBrush,
20 "A brush is a drawing tool for filling in areas. It is used for painting the\n"
21 "background of rectangles, ellipses, etc. It has a colour and a style.");
22
d14a1e28
RD
23class wxBrush : public wxGDIObject {
24public:
1e0c8722 25 DocStr(wxBrush, "Constructs a brush from a colour object and style.");
d14a1e28
RD
26 wxBrush(const wxColour& colour, int style=wxSOLID);
27 ~wxBrush();
1e0c8722
RD
28
29
d14a1e28
RD
30 virtual void SetColour(const wxColour& col);
31 virtual void SetStyle(int style);
32 virtual void SetStipple(const wxBitmap& stipple);
33
34 wxColour GetColour() const;
35 int GetStyle() const;
36 wxBitmap *GetStipple() const;
37
38 bool Ok();
39
40#ifdef __WXMAC__
41 short GetMacTheme();
42 void SetMacTheme(short macThemeBrush);
43#endif
44
45 %pythoncode { def __nonzero__(self): return self.Ok() }
46};
47
48//---------------------------------------------------------------------------