""" | |
.. codeauthor:: Tsuyoshi Hombashi <[email protected]> | |
""" | |
import enum | |
class Align(enum.Enum): | |
AUTO = (1 << 0, "auto") | |
LEFT = (1 << 1, "left") | |
RIGHT = (1 << 2, "right") | |
CENTER = (1 << 3, "center") | |
def align_code(self) -> int: | |
return self.__align_code | |
def align_string(self) -> str: | |
return self.__align_string | |
def __init__(self, code: int, string: str) -> None: | |
self.__align_code = code | |
self.__align_string = string | |