A class representing a rich text dimension, including units and position.
Default constructor. |
|
Apply the dimension, but not those identical to compareWith if present. |
|
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 dimension flags. |
|
Gets the position flags. |
|
Gets the units of the dimension. |
|
Returns the integer value of the dimension. |
|
Returns the floating-pointing value of the dimension in mm. |
|
Returns |
|
Resets the dimension value and flags. |
|
Sets the dimension flags. |
|
Sets the position flags. |
|
Sets the units of the dimension. |
|
Sets the valid flag. |
|
Sets the integer value of the dimension. |
|
Sets the value of the dimension in mm. |
|
Equality operator. |
See |
|
See |
|
A public C++ attribute of type TextAttrDimensionFlags . |
|
A public C++ attribute of type |
Possible constructors:
TextAttrDimension()
TextAttrDimension(value, units=TEXT_ATTR_UNITS_TENTHS_MM)
A class representing a rich text dimension, including units and position.
__init__ (self)
Default constructor.
__init__ (self, value, units=TEXT_ATTR_UNITS_TENTHS_MM)
Constructor taking value and units flag.
value (int) –
units (TextAttrUnits) –
Apply the dimension, but not those identical to compareWith if present.
dim (wx.richtext.TextAttrDimension) –
compareWith (wx.richtext.TextAttrDimension) –
bool
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.TextAttrDimension) –
clashingAttr (wx.richtext.TextAttrDimension) –
absentAttr (wx.richtext.TextAttrDimension) –
Partial equality test.
If weakTest is True
, attributes of this object do not have to be present if those attributes of dim are present. If weakTest is False
, the function will fail if an attribute is present in dim but not in this object.
dim (wx.richtext.TextAttrDimension) –
weakTest (bool) –
bool
Gets the dimension flags.
wx.richtext.TextAttrDimensionFlags
Gets the position flags.
Gets the units of the dimension.
Returns the integer value of the dimension.
int
Returns the floating-pointing value of the dimension in mm.
float
Returns True
if the dimension is valid.
bool
Resets the dimension value and flags.
Sets the dimension flags.
flags (wx.richtext.TextAttrDimensionFlags) –
Sets the position flags.
pos (TextBoxAttrPosition) –
Sets the units of the dimension.
units (TextAttrUnits) –
Sets the valid flag.
b (bool) –
SetValue (self, value)
Sets the integer value of the dimension.
value (int) –
SetValue (self, value, flags)
Sets the integer value of the dimension, passing dimension flags.
value (int) –
flags (wx.richtext.TextAttrDimensionFlags) –
SetValue (self, dim)
Sets the dimension.
dim (wx.richtext.TextAttrDimension) –
Sets the value of the dimension in mm.
value (float) –
int
int
Equality operator.
dim (wx.richtext.TextAttrDimension) –
See GetPosition
and SetPosition
See GetValueMM
and SetValueMM
A public C++ attribute of type TextAttrDimensionFlags .
A public C++ attribute of type int
.