Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Commits
b07a77d8
Commit
b07a77d8
authored
1 year ago
by
pippin
Committed by
moon2
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
mypy: sprinkle ctx docs
parent
716a767a
No related branches found
No related tags found
1 merge request
!226
ctx: update from upstream - more enabled features
Pipeline
#7364
passed
1 year ago
Stage: check
Stage: build
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_payload/mypystubs/ctx.pyi
+17
-29
17 additions, 29 deletions
python_payload/mypystubs/ctx.pyi
with
17 additions
and
29 deletions
python_payload/mypystubs/ctx.pyi
+
17
−
29
View file @
b07a77d8
...
...
@@ -75,22 +75,6 @@ class Context(Protocol):
should be balanced.
"""
pass
def
start_frame
(
self
)
->
"
Context
"
:
"""
Prepare for rendering a new frame, clears internal drawlist and
initializes the state.
TODO(q3k): we probably shouldn
'
t expose this
"""
pass
def
end_frame
(
self
)
->
"
Context
"
:
"""
We
'
re done rendering a frame, this does nothing on a context created for
a framebuffer, where drawing commands are immediate.
TODO(q3k): we probably shouldn
'
t expose this
"""
pass
def
start_group
(
self
)
->
"
Context
"
:
"""
Start a compositing group.
...
...
@@ -195,24 +179,30 @@ class Context(Protocol):
pass
def
rel_line_to
(
self
,
x
:
float
,
y
:
float
)
->
"
Context
"
:
"""
TOD(q3k): document
Adds a line segment from the current point to current_x + x,
current_y + y.
"""
pass
def
rel_move_to
(
self
,
x
:
float
,
y
:
float
)
->
"
Context
"
:
"""
TOD(q3k): document
Moves the virtual pen a relative amount without adding a segment to
the current path.
"""
pass
def
rel_curve_to
(
self
,
cx0
:
float
,
cy0
:
float
,
cx1
:
float
,
cy1
:
float
,
x
:
float
,
y
:
float
)
->
"
Context
"
:
"""
TOD(q3k): document
Adds a cubic bezier segment using relative coordinates, behaves
like curve_to but all coordinate arguments are relative to the
coordinates of the virtual pen when called.
"""
pass
def
rel_quad_to
(
self
,
cx
:
float
,
cy
:
float
,
x
:
float
,
y
:
float
)
->
"
Context
"
:
"""
TOD(q3k): document
Adds a quadratic bezier segment using relative coordinates, behaves
like quad_to but all coordinate arguments are relative to the
coordinates of the virtual pen when called.
"""
pass
def
rel_arc_to
(
...
...
@@ -263,17 +253,14 @@ class Context(Protocol):
pass
def
fill
(
self
)
->
"
Context
"
:
"""
TOD(q3k): document
Fill the current path with the current source (color, gradient or
texture).
"""
pass
def
stroke
(
self
)
->
"
Context
"
:
"""
TOD(q3k): document
"""
pass
def
paint
(
self
)
->
"
Context
"
:
"""
TOD(q3k): document
Stroke the current path with the current source (color, gradient or
texture), with current line_width
"""
pass
def
add_stop
(
...
...
@@ -324,12 +311,13 @@ class Context(Protocol):
pass
def
logo
(
self
,
x
:
float
,
y
:
float
,
dim
:
float
)
->
"
Context
"
:
"""
TOD(q3k): document
Draws the ctx logo, centered at x,y with a footprint of roughly dim
units.
"""
pass
def
text
(
self
,
text
:
str
)
->
"
Context
"
:
"""
TOD(q3k): document
Add a text fragment using the current fill source, font and font size.
"""
pass
def
scope
(
self
)
->
"
Context
"
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment