microGUI.Types.Area

Classes

AreaType

Position and dimensions of a rectangular area.

Module Contents

class microGUI.Types.Area.AreaType(pos: microGUI.Types.Point.PointType = None, size: microGUI.Types.Dim.DimType = None)

Position and dimensions of a rectangular area.

The AreaType structure describes the position and dimensions of a rectangular area. It’s used extensively by the Widget. This structure contains at least the following members:

Parameters:
  • pos (PointType) – Upper-left corner of the area.

  • size (DimType) – Size of the area.

property pos
Upper-left corner of the area.
Getter:

Get pos property

Setter:

Set pos property

Raises:

TypeError – When pos is not set with PointType type or None

Return type:

PointType

property size
Upper-left corner of the area.
Getter:

Get size property

Setter:

Set size property

Raises:

TypeError – When size is not set with DimType type or None

Return type:

DimType