X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/020303e6f9b582dfd75ba498a72f5f14f6cfff85..f6342fb5e6524edffa219d5843536ea279bba4df:/wxPython/src/_brush.i diff --git a/wxPython/src/_brush.i b/wxPython/src/_brush.i index 6f39b239ef..e990a3b94c 100644 --- a/wxPython/src/_brush.i +++ b/wxPython/src/_brush.i @@ -56,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(); @@ -96,8 +102,9 @@ uninitialised bitmap (`wx.Bitmap.Ok` returns False).", ""); DocDeclStr( - bool , Ok(), + bool , IsOk(), "Returns True if the brush is initialised and valid.", ""); + %pythoncode { Ok = IsOk } #ifdef __WXMAC__ @@ -105,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`"); + }; //---------------------------------------------------------------------------