wx.richtext.TextAttrDimensions¶
A class for left, right, top and bottom dimensions.
Class Hierarchy¶
Methods Summary¶
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. |
Properties Summary¶
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 |
Class API¶
- class wx.richtext.TextAttrDimensions(object)¶
Possible constructors:
TextAttrDimensions() -> None
A class for left, right, top and bottom dimensions.
Methods¶
- __init__(self)¶
Default constructor.
- Return type:
None
- Apply(self, dims, compareWith=None)¶
Apply to ‘this’, but not if the same as compareWith.
- Parameters:
compareWith (wx.richtext.TextAttrDimensions)
- 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:
clashingAttr (wx.richtext.TextAttrDimensions)
absentAttr (wx.richtext.TextAttrDimensions)
- Return type:
None
- 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 isFalse, the function will fail if an attribute is present in dims but not in this object.- Parameters:
weakTest (bool)
- Return type:
bool
- GetBottom(self)¶
- Return type:
- GetLeft(self)¶
- Return type:
- GetRight(self)¶
- Return type:
- GetTop(self)¶
- Return type:
- IsValid(self)¶
Are all dimensions valid?
- Return type:
bool
- RemoveStyle(self, attr)¶
Remove specified attributes from this object.
- Parameters:
- Return type:
bool
- Reset(self)¶
Resets the value and flags for all dimensions.
- Return type:
None
- __bool__(self)¶
- Return type:
bool
- __nonzero__(self)¶
- Return type:
bool
- __eq__(self, dims)¶
Equality operator.
- Parameters:
- Return type:
bool
Properties¶
- 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.