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.

__init__(x, y, width, height)[source]

Constructor

Parameters:
  • width (UnitT) – Specifies width

  • height (UnitT) – Specifies height

  • x (_T) –

  • y (_T) –

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

Gets instance value as Size

Return type:

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

get_uno_point_size()[source]

Gets current values as Point and Size

Returns:

UNO Point and Size.

Return type:

Tuple[Point, Size]

get_uno_rectangle()[source]

Gets current values as Rectangle

Returns:

UNO Rectangle.

Return type:

Rectangle

property height: _T

Gets/Sets height

Return type:

TypeVar(_T, bound= UnitT)

property width: _T

Gets/Sets width

Return type:

TypeVar(_T, bound= UnitT)

property x: _T

Gets/Sets x

Return type:

TypeVar(_T, bound= UnitT)

property y: _T

Gets/Sets y

Return type:

TypeVar(_T, bound= UnitT)