Class GenericUnitPoint

class ooodev.utils.data_type.generic_unit_point.GenericUnitPoint(x, y)[source]

Point x and y.

New in version 0.17.3.

__init__(x, y)[source]

Constructor

Parameters:
  • x (UnitT) – Specifies width

  • y (UnitT) – Specifies height

Return type:

None

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_point()[source]

Gets instance value as Size

Return type:

GenericPoint[TypeVar(TNum, bound= Union[int, float])]

get_uno_point()[source]

Gets instance value as uno Point

Return type:

Point

property x: _T

Gets/Sets width

Return type:

TypeVar(_T, bound= UnitT)

property y: _T

Gets/Sets height

Return type:

TypeVar(_T, bound= UnitT)