Class GenericSize

class ooodev.utils.data_type.generic_size.GenericSize(width, height)[source]

Represents a generic size.

New in version 0.14.0.

__init__(width, height)[source]

Constructor

Parameters:
  • width (int) – Width value.

  • height (int) – Height Value.

Return type:

None

get_uno_size()[source]

Gets UNO instance from current values

Return type:

Size

swap()[source]

Gets an instance with values swapped.

Return type:

Self

property height: T

Gets/Sets height.

Return type:

TypeVar(T, bound= Union[int, float])

property width: T

Gets/Sets width.

Return type:

TypeVar(T, bound= Union[int, float])