microGUI.Types.Point

Classes

PointType

Coordinates of a single point.

Module Contents

class microGUI.Types.Point.PointType(x: int = None, y: int = None)

Coordinates of a single point.

The PointType structure describes the coordinates of a single point

See also

  • microGUI.Widgets.Widget.Location

  • microGUI.Widgets.Widget.Position

Parameters:
  • x (int) – X-axis coordinate.

  • y (int) – Y-axis coordinate.

property x: int

X-axis coordinate.

Getter:

Get x property

Setter:

Set x property

Raises:

TypeError – When not x is not set with int type

Return type:

int

property y: int

Y-axis coordinate.

Getter:

Get y property

Setter:

Set y property

Raises:

TypeError – When not y is not set with int type

Return type:

int