A class representing a rich text object border.
See also
wx.richtext.RichTextAttr, wx.richtext.RichTextCtrl, RichTextAttrBorders
Default constructor. |
|
Adds a border flag. |
|
Applies the border to this object, but not if the same as compareWith. |
|
Collects the attributes that are common to a range of content, building up a note of which attributes are absent in some objects and which clash in some objects. |
|
Partial equality test. |
|
Gets the colour. |
|
Gets the colour as a long. |
|
Returns the border flags. |
|
Gets the border style. |
|
Gets the border width. |
|
True if the border has a valid colour. |
|
True if the border has a valid style. |
|
True if the border has a valid width. |
|
True if the border has no attributes set. |
|
True if the border is valid. |
|
Set the valid flag for this border. |
|
Removes a border flag. |
|
Removes the specified attributes from this object. |
|
Resets the border style, colour, width and flags. |
|
Sets the border colour. |
|
Sets the border flags. |
|
Sets the border style. |
|
Sets the border width. |
|
Equality operator. |
See |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
wx.richtext.
TextAttrBorder
(object)¶Possible constructors:
TextAttrBorder()
A class representing a rich text object border.
__init__
(self)¶Default constructor.
AddFlag
(self, flag)¶Adds a border flag.
flag (int) –
Apply
(self, border, compareWith=None)¶Applies the border to this object, but not if the same as compareWith.
border (wx.richtext.TextAttrBorder) –
compareWith (wx.richtext.TextAttrBorder) –
bool
CollectCommonAttributes
(self, attr, clashingAttr, absentAttr)¶Collects the attributes that are common to a range of content, building up a note of which attributes are absent in some objects and which clash in some objects.
attr (wx.richtext.TextAttrBorder) –
clashingAttr (wx.richtext.TextAttrBorder) –
absentAttr (wx.richtext.TextAttrBorder) –
EqPartial
(self, border, weakTest=True)¶Partial equality test.
If weakTest is True
, attributes of this object do not have to be present if those attributes of border are present. If weakTest is False
, the function will fail if an attribute is present in border but not in this object.
border (wx.richtext.TextAttrBorder) –
weakTest (bool) –
bool
GetColourLong
(self)¶Gets the colour as a long.
int
GetFlags
(self)¶Returns the border flags.
int
GetStyle
(self)¶Gets the border style.
int
GetWidth
(self)¶Gets the border width.
HasColour
(self)¶True if the border has a valid colour.
bool
HasStyle
(self)¶True if the border has a valid style.
bool
HasWidth
(self)¶True if the border has a valid width.
bool
IsDefault
(self)¶True if the border has no attributes set.
bool
IsValid
(self)¶True if the border is valid.
bool
MakeValid
(self)¶Set the valid flag for this border.
RemoveFlag
(self, flag)¶Removes a border flag.
flag (int) –
RemoveStyle
(self, attr)¶Removes the specified attributes from this object.
attr (wx.richtext.TextAttrBorder) –
bool
Reset
(self)¶Resets the border style, colour, width and flags.
SetColour
(self, *args, **kw)¶Sets the border colour.
SetColour (self, colour)
colour (long) –
SetColour (self, colour)
colour (wx.Colour) –
SetFlags
(self, flags)¶Sets the border flags.
flags (int) –
SetStyle
(self, style)¶Sets the border style.
style (int) –
SetWidth
(self, *args, **kw)¶Sets the border width.
SetWidth (self, width)
width (wx.richtext.TextAttrDimension) –
SetWidth (self, value, units=TEXT_ATTR_UNITS_TENTHS_MM)
value (int) –
units (TextAttrUnits) –
__bool__
(self)¶int
__nonzero__
(self)¶int
__eq__
(self)¶Equality operator.
border (wx.richtext.TextAttrBorder) –
ColourLong
¶See GetColourLong
m_borderColour
¶A public C++ attribute of type long
.
m_borderStyle
¶A public C++ attribute of type int
.
m_borderWidth
¶A public C++ attribute of type TextAttrDimension
.
m_flags
¶A public C++ attribute of type int
.