enable.savage.svg.backends.kiva.renderer module¶
-
class
enable.savage.svg.backends.kiva.renderer.
CompiledPath
(*args)[source]¶ Bases:
kiva.agg.agg.CompiledPath
-
AddLineToPoint
(*args)¶
-
AddPath
(*args)¶
-
AddQuadCurveToPoint
(*args)¶
-
AddRectangle
(*args)¶
-
CloseSubpath
(*args)¶
-
GetCurrentPoint
()¶
-
MoveToPoint
(*args)¶
-
-
class
enable.savage.svg.backends.kiva.renderer.
LinearGradientBrush
(x1, y1, x2, y2, stops, spreadMethod='pad', transforms=None, units='userSpaceOnUse')[source]¶ Bases:
enable.savage.svg.backends.null.null_renderer.AbstractGradientBrush
A Brush representing a linear gradient.
-
class
enable.savage.svg.backends.kiva.renderer.
RadialGradientBrush
(cx, cy, r, stops, fx=None, fy=None, spreadMethod='pad', transforms=None, units='userSpaceOnUse')[source]¶ Bases:
enable.savage.svg.backends.null.null_renderer.AbstractGradientBrush
A Brush representing a radial gradient.
-
class
enable.savage.svg.backends.kiva.renderer.
Renderer
[source]¶ Bases:
enable.savage.svg.backends.null.null_renderer.NullRenderer
-
classmethod
DrawText
(gc, text, x, y, brush, anchor='start')[source]¶ Draw text at the given x,y position with the color of the given brush.
fixme: Handle gradients…?
-
NullBrush
= None¶
-
NullGraphicsBrush
= None¶
-
NullPen
= None¶
-
TransparentPen
= <enable.savage.svg.backends.kiva.renderer.Pen object>¶
-
caps
= {'butt': 1, 'round': 0, 'square': 2}¶
-
classmethod
createLinearGradientBrush
(x1, y1, x2, y2, stops, spreadMethod='pad', transforms=None, units='userSpaceOnUse')[source]¶
-
classmethod
createRadialGradientBrush
(cx, cy, r, stops, fx=None, fy=None, spreadMethod='pad', transforms=None, units='userSpaceOnUse')[source]¶
-
fill_rules
= {'evenodd': 2, 'nonzero': 1}¶
-
joins
= {'bevel': 1, 'miter': 2, 'round': 0}¶
-
classmethod