enums¶
Enumerations.
Enumerations
Enumeration of amount comparisons. |
|
Enumeration of horizontal alignments. |
|
Enumeration of vertical alignments. |
- class abjad.enums.Comparison(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Enumeration of amount comparisons.
Special methods
-
classmethod (
EnumType
).__contains__(member)¶ Return True if member is a member of this enum raises TypeError if member is not an enum member
note: in 3.12 TypeError will no longer be raised, and True will also be returned if member is the value of a member in this enum
-
classmethod (
EnumType
).__getitem__(name)¶ Return the member matching name.
-
classmethod (
EnumType
).__iter__()¶ Return members in definition order.
-
classmethod (
EnumType
).__len__()¶ Return the number of members (no aliases)
- EXACT = 0¶
- LESS = -1¶
- MORE = 1¶
-
classmethod (
- class abjad.enums.Horizontal(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Enumeration of horizontal alignments.
Special methods
-
classmethod (
EnumType
).__contains__(member)¶ Return True if member is a member of this enum raises TypeError if member is not an enum member
note: in 3.12 TypeError will no longer be raised, and True will also be returned if member is the value of a member in this enum
-
classmethod (
EnumType
).__getitem__(name)¶ Return the member matching name.
-
classmethod (
EnumType
).__iter__()¶ Return members in definition order.
-
classmethod (
EnumType
).__len__()¶ Return the number of members (no aliases)
- LEFT = -1¶
- MIDDLE = 0¶
- RIGHT = 1¶
-
classmethod (
- class abjad.enums.Vertical(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Enumeration of vertical alignments.
Special methods
-
classmethod (
EnumType
).__contains__(member)¶ Return True if member is a member of this enum raises TypeError if member is not an enum member
note: in 3.12 TypeError will no longer be raised, and True will also be returned if member is the value of a member in this enum
-
classmethod (
EnumType
).__getitem__(name)¶ Return the member matching name.
-
classmethod (
EnumType
).__iter__()¶ Return members in definition order.
-
classmethod (
EnumType
).__len__()¶ Return the number of members (no aliases)
- CENTER = 0¶
- DOWN = -1¶
- UP = 1¶
-
classmethod (