Types¶
Utility data structures used by Toga APIs.
Reference¶
toga.LatLng
¶
toga.Position
¶
Bases: NamedTuple
A 2D position.
toga.Size
¶
Bases: NamedTuple
A 2D size.
toga.types.PositionT
module-attribute
¶
PositionT: TypeAlias
A representation of a 2D position, in CSS pixels. This can be:
- A tuple of 2 integers
(x,y); or - An instance of toga.Position.