Source code for neoscore.core.text_alignment

"""Enums describing text alignment.

All enum int values are arbitrary and not part of the guaranteed API.
"""

from enum import Enum, auto


[docs]class AlignmentX(Enum): """Enum defining horizontal text alignments.""" LEFT = auto() CENTER = auto() RIGHT = auto()
[docs]class AlignmentY(Enum): """Enum defining vertical text alignments. Only baseline and center alignments are currently supported. """ BASELINE = auto() CENTER = auto()