A class for left, right, top and bottom dimensions.
See also
wx.richtext.RichTextAttr, wx.richtext.RichTextCtrl, wx.richtext.TextAttrDimension
Default constructor. |
|
Apply to ‘this’, 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. |
|
Are all dimensions valid? |
|
Remove specified attributes from this object. |
|
Resets the value and flags for all dimensions. |
|
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.
TextAttrDimensions
(object)¶Possible constructors:
TextAttrDimensions()
A class for left, right, top and bottom dimensions.
__init__
(self)¶Default constructor.
Apply
(self, dims, compareWith=None)¶Apply to ‘this’, but not if the same as compareWith.
dims (wx.richtext.TextAttrDimensions) –
compareWith (wx.richtext.TextAttrDimensions) –
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.TextAttrDimensions) –
clashingAttr (wx.richtext.TextAttrDimensions) –
absentAttr (wx.richtext.TextAttrDimensions) –
EqPartial
(self, dims, weakTest=True)¶Partial equality test.
If weakTest is True
, attributes of this object do not have to be present if those attributes of dims are present. If weakTest is False
, the function will fail if an attribute is present in dims but not in this object.
dims (wx.richtext.TextAttrDimensions) –
weakTest (bool) –
bool
GetBottom
(self)¶GetLeft
(self)¶GetRight
(self)¶GetTop
(self)¶IsValid
(self)¶Are all dimensions valid?
bool
RemoveStyle
(self, attr)¶Remove specified attributes from this object.
attr (wx.richtext.TextAttrDimensions) –
bool
Reset
(self)¶Resets the value and flags for all dimensions.
__bool__
(self)¶int
__nonzero__
(self)¶int
__eq__
(self)¶Equality operator.
dims (wx.richtext.TextAttrDimensions) –
m_bottom
¶A public C++ attribute of type TextAttrDimension
.
m_left
¶A public C++ attribute of type TextAttrDimension
.
m_right
¶A public C++ attribute of type TextAttrDimension
.
m_top
¶A public C++ attribute of type TextAttrDimension
.