wx.richtext.TextAttrSize¶
A class for representing width and height.
Class Hierarchy¶
Methods Summary¶
Default constructor. |
|
Apply 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 height. |
|
Returns the width. |
|
Is the size valid? |
|
Removes the specified attributes from this object. |
|
Resets the width and height dimensions. |
|
Sets the height. |
|
Sets the width. |
|
Equality operator. |
Properties Summary¶
A public C++ attribute of type |
|
A public C++ attribute of type |
Class API¶
- class wx.richtext.TextAttrSize(object)¶
Possible constructors:
TextAttrSize() -> None
A class for representing width and height.
Methods¶
- __init__(self)¶
Default constructor.
- Return type:
None
- Apply(self, dims, compareWith=None)¶
Apply to this object, but not if the same as compareWith.
- Parameters:
dims (wx.richtext.TextAttrSize)
compareWith (wx.richtext.TextAttrSize)
- 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.TextAttrSize)
clashingAttr (wx.richtext.TextAttrSize)
absentAttr (wx.richtext.TextAttrSize)
- Return type:
None
- EqPartial(self, size, weakTest=True)¶
Partial equality test.
If weakTest is
True
, attributes of this object do not have to be present if those attributes of size are present. If weakTest isFalse
, the function will fail if an attribute is present in size but not in this object.- Parameters:
size (wx.richtext.TextAttrSize)
weakTest (bool)
- Return type:
bool
- GetHeight(self)¶
Gets the height.
- Return type:
- GetWidth(self)¶
Returns the width.
- Return type:
- IsValid(self)¶
Is the size valid?
- Return type:
bool
- RemoveStyle(self, attr)¶
Removes the specified attributes from this object.
- Parameters:
attr (wx.richtext.TextAttrSize)
- Return type:
bool
- Reset(self)¶
Resets the width and height dimensions.
- Return type:
None
- SetHeight(self, *args, **kw)¶
Sets the height.
SetHeight (self, value, flags)
- Parameters:
value (int)
flags (wx.richtext.TextAttrDimensionFlags)
- Return type:
None
SetHeight (self, dim)
- Parameters:
- Return type:
None
- SetWidth(self, *args, **kw)¶
Sets the width.
SetWidth (self, value, flags)
- Parameters:
value (int)
flags (wx.richtext.TextAttrDimensionFlags)
- Return type:
None
SetWidth (self, dim)
- Parameters:
- Return type:
None
- __bool__(self)¶
- Return type:
bool
- __nonzero__(self)¶
- Return type:
bool
- __eq__(self, size)¶
Equality operator.
- Parameters:
size (wx.richtext.TextAttrSize)
- Return type:
bool
Properties¶
- m_height¶
A public C++ attribute of type
TextAttrDimension
.
- m_width¶
A public C++ attribute of type
TextAttrDimension
.