enable.savage.svg.backends.null.null_renderer module

class enable.savage.svg.backends.null.null_renderer.AbstractGradientBrush[source]

Bases: object

Abstract base class for gradient brushes so they can be detected easily.

IsOk()[source]
bbox_transform(gc, bbox)[source]

Apply a transformation to make the bbox a unit square.

class enable.savage.svg.backends.null.null_renderer.NullRenderer[source]

Bases: object

classmethod DrawImage(gc, image, x, y, width, height)[source]
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.

classmethod GetTextExtent(gc, text)[source]
NullBrush = None
NullGraphicsBrush = None
NullPen = None
TransparentPen = None
caps = {'butt': None, 'round': None, 'square': None}
classmethod clipPath(gc, path)[source]
classmethod concatTransform(gc, matrix)[source]
classmethod createAffineMatrix(a, b, c, d, x, y)[source]
classmethod createBrush(color_tuple)[source]
classmethod createLinearGradientBrush(x1, y1, x2, y2, stops, spreadMethod='pad', transforms=None, units='userSpaceOnUse')[source]
classmethod createNativePen(pen)[source]
classmethod createPen(color_tuple)[source]
classmethod createRadialGradientBrush(cx, cy, r, stops, fx=None, fy=None, spreadMethod='pad', transforms=None, units='userSpaceOnUse')[source]
classmethod fillPath(gc, path, mode)[source]
fill_rules = {'evenodd': None, 'nonzero': None}
classmethod getFont(font_name='Arial')[source]
classmethod gradientPath(gc, path, brush)[source]
joins = {'bevel': None, 'miter': None, 'round': None}
classmethod makeMatrix(*args)[source]
classmethod makePath()[source]
classmethod popState(gc)[source]
classmethod pushState(gc)[source]
classmethod rotate(gc, angle)[source]
classmethod scale(gc, sx, sy)[source]
classmethod setBrush(gc, brush)[source]
classmethod setFont(gc, font, brush)[source]
classmethod setFontSize(font, size)[source]
classmethod setFontStyle(font, style)[source]
classmethod setFontWeight(font, weight)[source]
classmethod setPen(gc, pen)[source]
classmethod setPenDash(pen, dasharray, offset)[source]
classmethod strokePath(gc, path)[source]
classmethod translate(gc, *args)[source]