wx.richtext.TextAttrSize¶A class for representing width and height.
See also
wx.richtext.RichTextAttr, wx.richtext.RichTextCtrl, wx.richtext.TextAttrDimension
Class Hierarchy¶
Inheritance diagram for class TextAttrSize:

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