/usr/include/wx-3.0/wx/wxPython/i_files/_brush.i is in python-wxgtk3.0-dev 3.0.2.0+dfsg-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | /////////////////////////////////////////////////////////////////////////////
// Name: _brush.i
// Purpose: SWIG interface for wxPen
//
// Author: Robin Dunn
//
// Created: 7-July-1997
// RCS-ID: $Id$
// Copyright: (c) 2003 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// Not a %module
//---------------------------------------------------------------------------
%newgroup
enum wxBrushStyle
{
wxBRUSHSTYLE_INVALID,
wxBRUSHSTYLE_SOLID,
wxBRUSHSTYLE_TRANSPARENT,
wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE,
wxBRUSHSTYLE_STIPPLE_MASK,
wxBRUSHSTYLE_STIPPLE,
wxBRUSHSTYLE_BDIAGONAL_HATCH,
wxBRUSHSTYLE_CROSSDIAG_HATCH,
wxBRUSHSTYLE_FDIAGONAL_HATCH,
wxBRUSHSTYLE_CROSS_HATCH,
wxBRUSHSTYLE_HORIZONTAL_HATCH,
wxBRUSHSTYLE_VERTICAL_HATCH,
wxBRUSHSTYLE_FIRST_HATCH,
wxBRUSHSTYLE_LAST_HATCH,
};
DocStr(wxBrush,
"A brush is a drawing tool for filling in areas. It is used for
painting the background of rectangles, ellipses, etc. when drawing on
a `wx.DC`. It has a colour and a style.", "
:warning: Do not create instances of wx.Brush before the `wx.App`
object has been created because, depending on the platform,
required internal data structures may not have been initialized
yet. Instead create your brushes in the app's OnInit or as they
are needed for drawing.
:note: On monochrome displays all brushes are white, unless the colour
really is black.
:see: `wx.BrushList`, `wx.DC`, `wx.DC.SetBrush`
");
MustHaveApp(wxBrush);
class wxBrush : public wxGDIObject {
public:
DocCtorStr(
wxBrush(const wxColour& colour, wxBrushStyle style=wxSOLID),
"Constructs a brush from a `wx.Colour` object and a style.",
"The style parameter may be one of the following:
=================== =============================
Style Meaning
=================== =============================
wx.TRANSPARENT Transparent (no fill).
wx.SOLID Solid.
wx.STIPPLE Uses a bitmap as a stipple.
wx.BDIAGONAL_HATCH Backward diagonal hatch.
wx.CROSSDIAG_HATCH Cross-diagonal hatch.
wx.FDIAGONAL_HATCH Forward diagonal hatch.
wx.CROSS_HATCH Cross hatch.
wx.HORIZONTAL_HATCH Horizontal hatch.
wx.VERTICAL_HATCH Vertical hatch.
=================== =============================
:see: `wx.BrushFromBitmap`
");
DocCtorStrName(
wxBrush(const wxBitmap& stippleBitmap),
"Constructs a stippled brush using a bitmap.", "",
BrushFromBitmap);
~wxBrush();
DocDeclStr(
virtual void , SetColour(const wxColour& col),
"Set the brush's `wx.Colour`.", "");
DocDeclStr(
virtual void , SetStyle(wxBrushStyle style),
"Sets the style of the brush. See `__init__` for a listing of styles.", "");
DocDeclStr(
virtual void , SetStipple(const wxBitmap& stipple),
"Sets the stipple `wx.Bitmap`.", "");
DocDeclStr(
wxColour , GetColour() const,
"Returns the `wx.Colour` of the brush.", "");
DocDeclStr(
wxBrushStyle , GetStyle() const,
"Returns the style of the brush. See `__init__` for a listing of
styles.", "");
DocDeclStr(
wxBitmap *, GetStipple() const,
"Returns the stiple `wx.Bitmap` of the brush. If the brush does not
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?", "");
bool IsTransparent() const;
bool IsNonTransparent() const;
DocDeclStr(
bool , IsOk(),
"Returns True if the brush is initialised and valid.", "");
%pythoncode { Ok = IsOk }
#ifdef __WXMAC__
// short MacGetTheme();
%pythoncode { def MacSetTheme(self, macThemeBrush): self.SetColour(wx.Colour(macThemeBrush)) }
#endif
%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`");
};
//---------------------------------------------------------------------------
|