Class GenericSizePos

class ooodev.utils.data_type.generic_size_pos.GenericSizePos(x, y, width, height)[source]

Represents a generic size and Position

New in version 0.14.0.

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

Constructor

Parameters:
  • x (T) – X value.

  • y (T) – Y value.

  • width (T) – Width value.

  • height (T) – Height Value.

Return type:

None

get_uno_size()[source]

Gets UNO instance from current values

Return type:

Rectangle

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])

property x: T

Gets/Sets x.

Return type:

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

property y: T

Gets/Sets y.

Return type:

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