Class GenericPoint

class ooodev.utils.data_type.generic_point.GenericPoint(x, y)[source]

Represents a generic point.

New in version 0.17.3.

__init__(x, y)[source]

Constructor

Parameters:
  • x (int) – X value.

  • y (int) – Y Value.

Return type:

None

get_uno_point()[source]

Gets UNO instance from current values

Return type:

Point

swap()[source]

Gets an instance with values swapped.

Return type:

Self

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