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() -> None
TextAttrDimension(value : int, units:
TextAttrUnits=TEXT_ATTR_UNITS_TENTHS_MM) -> None
A class representing a rich text dimension, including units and position.
__init__ (self)
Default constructor.
None
__init__ (self, value : int, units: TextAttrUnits=TEXT_ATTR_UNITS_TENTHS_MM)
Constructor taking value and units flag.
value (int)
units (TextAttrUnits)
None
Apply the dimension, but not those identical to compareWith if present.
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.
clashingAttr (wx.richtext.TextAttrDimension)
absentAttr (wx.richtext.TextAttrDimension)
None
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.
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.
None
Sets the dimension flags.
flags (wx.richtext.TextAttrDimensionFlags)
None
Sets the position flags.
pos (TextBoxAttrPosition)
None
Sets the units of the dimension.
units (TextAttrUnits)
None
Sets the valid flag.
b (bool)
None
SetValue (self, value : int)
Sets the integer value of the dimension.
value (int)
None
SetValue (self, value : int, flags : TextAttrDimensionFlags)
Sets the integer value of the dimension, passing dimension flags.
value (int)
flags (wx.richtext.TextAttrDimensionFlags)
None
SetValue (self, dim : TextAttrDimension)
Sets the dimension.
None
Sets the value of the dimension in mm.
value (float)
None
int
int
Equality operator.
See GetPosition
and SetPosition
See GetValueMM
and SetValueMM
A public C++ attribute of type TextAttrDimensionFlags .
A public C++ attribute of type int
.