Skip to content
Snippets Groups Projects
Commit 25a28944 authored by Anon's avatar Anon
Browse files

py: add additional constants to ctx types

parent 356787cf
Branches
Tags
1 merge request!70py: add additional constants to ctx types
Pipeline #6240 passed
...@@ -29,9 +29,19 @@ class Context(Protocol): ...@@ -29,9 +29,19 @@ class Context(Protocol):
global_alpha: float = 1.0 global_alpha: float = 1.0
font: str = "" font: str = ""
ALPHABETIC: str = "alphabetic"
TOP: str = "top"
HANGING: str = "hanging"
MIDDLE: str = "middle"
IDEOGRAPHIC: str = "ideographic"
BOTTOM: str = "bottom"
START: str = "start"
END: str = "end"
JUSTIFY: str = "justify"
CENTER: str = "center" CENTER: str = "center"
LEFT: str = "left"
RIGHT: str = "right" RIGHT: str = "right"
MIDDLE: str = "middle"
def __init__(self) -> None: ... def __init__(self) -> None: ...
def text_width(self, text: str) -> float: def text_width(self, text: str) -> float:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment