pyglet.customtypes

保存整个代码库中使用的类型别名。

Buffer

bytes | bytearray | memoryview | Array 的别名

HorizontalAlign

Literal['left', 'center', 'right'] 的别名

AnchorX

Literal['left', 'center', 'right'] 的别名

AnchorY

Literal['top', 'bottom', 'center', 'baseline'] 的别名

ContentVAlign

Literal['left', 'center', 'top'] 的别名