elsie
3.3
▾ elsie
▸ boxtree
▸ ext
▾ render
▾ backends
▸ backend
▾ cairo
▸ backend
▾ draw
▸ rcontext
▸ shapes
▸ svg
▸ text
▸ utils
▸ rcontext
▸ svg
▸ image
▸ inkscape
▸ jupyter
▸ ora
▸ pdfmerge
▸ render
▸ shapes
▸ slides
▸ text
▸ utils
▸ version
Module draw
elsie
.
render
.
backends
.
cairo
.
draw
source
link
Functions
▶
def
apply_viewbox
(
ctx: cairo.Context, width: float, height: float, viewbox
) -> float
source
link
Reexports
Imported in
elsie.render.backends.cairo.rcontext
.
▶
def
ctx_scope
(
ctx: cairo.Context
)
@contextlib.contextmanager
@contextlib.contextmanager
def
ctx_scope(
ctx: cairo.Context
)
source
link
Reexports
Imported in
elsie.render.backends.cairo.rcontext
.
▶
def
fill_shape
(
ctx, callback, bg_color
)
source
link
Reexports
Imported in
elsie.render.backends.cairo.rcontext
.
▶
def
fill_stroke_shape
(
ctx, callback, color=None, bg_color=None, stroke_width=None, ...
)
def
fill_stroke_shape(
ctx,
callback,
color=
None
,
bg_color=
None
,
stroke_width=
None
,
stroke_dasharray=
None
,
)
source
link
Reexports
Imported in
elsie.render.backends.cairo.rcontext
.
▶
def
rounded_rectangle
(
ctx: cairo.Context, x, y, w, h, rx, ry
)
source
link
Reexports
Imported in
elsie.render.backends.cairo.rcontext
.
▶
def
stroke_shape
(
ctx, callback, color, stroke_width=None, stroke_dasharray=None
)
source
link
Reexports
Imported in
elsie.render.backends.cairo.rcontext
.
▶
def
transform
(
ctx: cairo.Context, point: Tuple[float, float], rotation: float = None, ...
)
def
transform(
ctx: cairo.Context,
point: Tuple[float, float],
rotation: float =
None
,
scale_x=
1.0
,
scale_y=
1.0
,
)
source
link
Reexports
Imported in
elsie.render.backends.cairo.rcontext
.
Imported in
elsie.render.backends.cairo.svg
.
Generated by
nedoc
v0.10 at 2022-02-05 18:22