Skip to content
Snippets Groups Projects
Commit 7f10a22a authored by pippin's avatar pippin
Browse files

mypy: add gstate_protect/unprotect

parent 1a4eb63d
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !153. Comments created here will be created in the context of that merge request.
......@@ -75,6 +75,20 @@ class Context(Protocol):
should be balanced.
"""
pass
def gstate_protect(self) -> "Context":
"""
Marks the current depth of the graphics state as a floor, after this
call it is not possible to restore() beyond this level. The protection
is lifted with gstate_unprotect.
"""
pass
def gstate_unprotect(self) -> "Context":
"""
Removes gstate_unprotect, if insufficient restore() calls have been made
since gstate_protect, a warning is printed and implicit restore calls
made.
"""
pass
def start_group(self) -> "Context":
"""
Start a compositing group.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment