A class representing a rich text object’s borders.
See also
wx.richtext.RichTextAttr, wx.richtext.RichTextCtrl, RichTextAttrBorder
Default constructor. |
|
Applies 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. |
|
Returns |
|
Removes the specified attributes from this object. |
|
Resets all borders. |
|
Sets colour of all borders. |
|
Sets the style of all borders. |
|
Sets the width of all borders. |
|
Equality operator. |
See |
|
See |
|
See |
|
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.
TextAttrBorders
(object)¶Possible constructors:
TextAttrBorders()
A class representing a rich text object’s borders.
__init__
(self)¶Default constructor.
Apply
(self, borders, compareWith=None)¶Applies border to this object, but not if the same as compareWith.
borders (wx.richtext.TextAttrBorders) –
compareWith (wx.richtext.TextAttrBorders) –
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.TextAttrBorders) –
clashingAttr (wx.richtext.TextAttrBorders) –
absentAttr (wx.richtext.TextAttrBorders) –
EqPartial
(self, borders, weakTest=True)¶Partial equality test.
If weakTest is True
, attributes of this object do not have to be present if those attributes of borders are present. If weakTest is False
, the function will fail if an attribute is present in borders but not in this object.
borders (wx.richtext.TextAttrBorders) –
weakTest (bool) –
bool
GetBottom
(self)¶GetLeft
(self)¶GetRight
(self)¶GetTop
(self)¶IsValid
(self)¶Returns True
if at least one border is valid.
bool
RemoveStyle
(self, attr)¶Removes the specified attributes from this object.
attr (wx.richtext.TextAttrBorders) –
bool
Reset
(self)¶Resets all borders.
SetColour
(self, *args, **kw)¶SetColour (self, colour)
Sets colour of all borders.
colour (long) –
SetColour (self, colour)
Sets the colour for all borders.
colour (wx.Colour) –
SetStyle
(self, style)¶Sets the style of all borders.
style (int) –
SetWidth
(self, *args, **kw)¶Sets the width of all borders.
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.
borders (wx.richtext.TextAttrBorders) –
m_bottom
¶A public C++ attribute of type TextAttrBorder
.
m_left
¶A public C++ attribute of type TextAttrBorder
.
m_right
¶A public C++ attribute of type TextAttrBorder
.
m_top
¶A public C++ attribute of type TextAttrBorder
.