XATypes Module

Types used throughout PyXA for various purposes.

New in version 0.1.1.

Classes:

XADatetimeBlock(date, duration)

A named tuple representing a date and an associated duration.

XAPoint(x, y)

A named tuple representing an (x, y) coordinate.

XARectangle(x, y, width, height)

A named tuple representing a rectangle with an origin point (x, y) and dimensions width x height.

class PyXA.XATypes.XADatetimeBlock(date, duration)

Bases: tuple

A named tuple representing a date and an associated duration.

Attributes:

date

Alias for field number 0

duration

Alias for field number 1

date

Alias for field number 0

duration

Alias for field number 1

class PyXA.XATypes.XAPoint(x, y)

Bases: tuple

A named tuple representing an (x, y) coordinate.

Attributes:

x

Alias for field number 0

y

Alias for field number 1

x

Alias for field number 0

y

Alias for field number 1

class PyXA.XATypes.XARectangle(x, y, width, height)

Bases: tuple

A named tuple representing a rectangle with an origin point (x, y) and dimensions width x height.

Attributes:

height

Alias for field number 3

width

Alias for field number 2

x

Alias for field number 0

y

Alias for field number 1

height

Alias for field number 3

width

Alias for field number 2

x

Alias for field number 0

y

Alias for field number 1