wx.richtext.TextAttrBorder¶
A class representing a rich text object border.
See also
wx.richtext.RichTextAttr, wx.richtext.RichTextCtrl, RichTextAttrBorders
Class Hierarchy¶
Methods Summary¶
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. |
Properties Summary¶
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 |
Class API¶
- class wx.richtext.TextAttrBorder(object)¶
Possible constructors:
TextAttrBorder() -> None
A class representing a rich text object border.
Methods¶
- __init__(self)¶
Default constructor.
- Return type:
None
- AddFlag(self, flag)¶
Adds a border flag.
- Parameters:
flag (int)
- Return type:
None
- Apply(self, border, compareWith=None)¶
Applies the border to this object, but not if the same as compareWith.
- Parameters:
border (wx.richtext.TextAttrBorder)
compareWith (wx.richtext.TextAttrBorder)
- Return type:
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.
- Parameters:
attr (wx.richtext.TextAttrBorder)
clashingAttr (wx.richtext.TextAttrBorder)
absentAttr (wx.richtext.TextAttrBorder)
- Return type:
None
- 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 isFalse
, the function will fail if an attribute is present in border but not in this object.- Parameters:
border (wx.richtext.TextAttrBorder)
weakTest (bool)
- Return type:
bool
- GetColourLong(self)¶
Gets the colour as a long.
- Return type:
int
- GetFlags(self)¶
Returns the border flags.
- Return type:
int
- GetStyle(self)¶
Gets the border style.
- Return type:
int
- GetWidth(self)¶
Gets the border width.
- Return type:
- HasColour(self)¶
True if the border has a valid colour.
- Return type:
bool
- HasStyle(self)¶
True if the border has a valid style.
- Return type:
bool
- HasWidth(self)¶
True if the border has a valid width.
- Return type:
bool
- IsDefault(self)¶
True if the border has no attributes set.
- Return type:
bool
- IsValid(self)¶
True if the border is valid.
- Return type:
bool
- MakeValid(self)¶
Set the valid flag for this border.
- Return type:
None
- RemoveFlag(self, flag)¶
Removes a border flag.
- Parameters:
flag (int)
- Return type:
None
- RemoveStyle(self, attr)¶
Removes the specified attributes from this object.
- Parameters:
attr (wx.richtext.TextAttrBorder)
- Return type:
bool
- Reset(self)¶
Resets the border style, colour, width and flags.
- Return type:
None
- SetColour(self, *args, **kw)¶
Sets the border colour.
SetColour (self, colour)
- Parameters:
colour (long)
- Return type:
None
SetColour (self, colour)
- Parameters:
colour (wx.Colour)
- Return type:
None
- SetFlags(self, flags)¶
Sets the border flags.
- Parameters:
flags (int)
- Return type:
None
- SetStyle(self, style)¶
Sets the border style.
- Parameters:
style (int)
- Return type:
None
- SetWidth(self, *args, **kw)¶
Sets the border width.
SetWidth (self, width)
- Parameters:
width (wx.richtext.TextAttrDimension)
- Return type:
None
SetWidth (self, value, units=TEXT_ATTR_UNITS_TENTHS_MM)
- Parameters:
value (int)
units (TextAttrUnits)
- Return type:
None
- __bool__(self)¶
- Return type:
bool
- __nonzero__(self)¶
- Return type:
bool
- __eq__(self, border)¶
Equality operator.
- Parameters:
border (wx.richtext.TextAttrBorder)
- Return type:
bool
Properties¶
- 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
.