File size: 535 Bytes
28bf99c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""

import enum


@enum.unique
class Align(enum.Enum):
    AUTO = (1 << 0, "auto")
    LEFT = (1 << 1, "left")
    RIGHT = (1 << 2, "right")
    CENTER = (1 << 3, "center")

    @property
    def align_code(self) -> int:
        return self.__align_code

    @property
    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