Class GenericUnitSizePos
- class ooodev.utils.data_type.generic_unit_size_pos.GenericUnitSizePos(x, y, width, height)[source]
Size Width and Height
New in version 0.14.0.
- convert_to(unit_length)[source]
Converts current values to specified unit length.
- Parameters:
unit_length (UnitLength) – Unit length to convert to.
- Returns:
Converted Units.
- Return type:
GenericUnitSize[UnitT, Union[int, float]]
- get_size_pos()[source]
Gets instance value as Size
- Return type:
GenericSizePos
[TypeVar
(TNum
, bound=Union
[int
,float
])]