X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d07d2bc9d05408c58b76c53a0a291915b88e5064..5f2502393e042e6e2c871ff94b7ccaf7a78b264d:/wxPython/src/_brush.i diff --git a/wxPython/src/_brush.i b/wxPython/src/_brush.i index 3545f9b975..e990a3b94c 100644 --- a/wxPython/src/_brush.i +++ b/wxPython/src/_brush.i @@ -33,6 +33,8 @@ a `wx.DC`. It has a colour and a style.", " :see: `wx.BrushList`, `wx.DC`, `wx.DC.SetBrush` "); +MustHaveApp(wxBrush); + class wxBrush : public wxGDIObject { public: DocCtorStr( @@ -54,8 +56,14 @@ public: wx.VERTICAL_HATCH Vertical hatch. =================== ============================= +:see: `wx.BrushFromBitmap` "); + DocCtorStrName( + wxBrush(const wxBitmap& stippleBitmap), + "Constructs a stippled brush using a bitmap.", "", + BrushFromBitmap); + ~wxBrush(); @@ -87,10 +95,16 @@ styles.", ""); have a wx.STIPPLE style, then the return value may be non-None but an uninitialised bitmap (`wx.Bitmap.Ok` returns False).", ""); + + DocDeclStr( + bool , IsHatch() const, + "Is the current style a hatch type?", ""); + DocDeclStr( - bool , Ok(), + bool , IsOk(), "Returns True if the brush is initialised and valid.", ""); + %pythoncode { Ok = IsOk } #ifdef __WXMAC__ @@ -98,7 +112,12 @@ uninitialised bitmap (`wx.Bitmap.Ok` returns False).", ""); void MacSetTheme(short macThemeBrush); #endif - %pythoncode { def __nonzero__(self): return self.Ok() } + %pythoncode { def __nonzero__(self): return self.IsOk() } + + %property(Colour, GetColour, SetColour, doc="See `GetColour` and `SetColour`"); + %property(Stipple, GetStipple, SetStipple, doc="See `GetStipple` and `SetStipple`"); + %property(Style, GetStyle, SetStyle, doc="See `GetStyle` and `SetStyle`"); + }; //---------------------------------------------------------------------------