Class GenericUnitSize
- class ooodev.utils.data_type.generic_unit_size.GenericUnitSize(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()[source]
Gets instance value as Size
- Return type:
GenericSize
[TypeVar
(TNum
, bound=Union
[int
,float
])]