Inherits from
- NullRenderer: enthought.savage.svg.backends.null.null_renderer.NullRenderer
Attributes
- caps
caps = { Const('butt') : Getattr(Name('kiva'), 'CAP_BUTT'), Const('round') : Getattr(Name('kiva'), 'CAP_ROUND'), Const('square') : Getattr(Name('kiva'), 'CAP_SQUARE') } - fill_rules
fill_rules = { Const('nonzero') : Getattr(Name('kiva'), 'FILL'), Const('evenodd') : Getattr(Name('kiva'), 'EOF_FILL') } - joins
joins = { Const('miter') : Getattr(Name('kiva'), 'JOIN_MITER'), Const('round') : Getattr(Name('kiva'), 'JOIN_ROUND'), Const('bevel') : Getattr(Name('kiva'), 'JOIN_BEVEL') } - NullBrush
NullBrush = None
- NullGraphicsBrush
NullGraphicsBrush = None
- NullPen
NullPen = None
- TransparentPen
TransparentPen = Pen((1.0, 1.0, 1.0, 0.0))
Method summary
- __init__(self)
- clipPath(cls, gc, path)
- concatTransform(cls, gc, matrix)
- createAffineMatrix(cls, a, b, c, d, x, y)
- createBrush(cls, color_tuple)
- createLinearGradientBrush(cls, x1, y1, x2, y2, stops, spreadMethod = 'pad', transforms = None, units = 'userSpaceOnUse')
- createNativePen(cls, pen)
- createPen(cls, color_tuple)
- createRadialGradientBrush(cls, cx, cy, r, stops, fx = None, fy = None, spreadMethod = 'pad', transforms = None, units = 'userSpaceOnUse')
- DrawImage(cls, gc, image, x, y, width, height)
- DrawText(cls, gc, text, x, y, brush, anchor = 'start')
- fillPath(cls, gc, path, mode)
- getCurrentPoint(cls, path)
- getFont(cls, font_name = 'Arial')
- GetTextExtent(cls, gc, text)
- gradientPath(cls, gc, path, brush)
- makeMatrix(cls, *args)
- makePath(cls)
- popState(cls, gc)
- pushState(cls, gc)
- rotate(cls, gc, angle)
- scale(cls, gc, sx, sy)
- setBrush(cls, gc, brush)
- setFont(cls, gc, font, brush)
- setFontSize(cls, font, size)
- setFontStyle(cls, font, style)
- setFontWeight(cls, font, weight)
- setPen(cls, gc, pen)
- setPenDash(cls, pen, dasharray, offset)
- strokePath(cls, gc, path)
- translate(cls, gc, *args)
Methods
- __init__(self)
- clipPath(cls, gc, path)
- concatTransform(cls, gc, matrix)
- createAffineMatrix(cls, a, b, c, d, x, y)
- createBrush(cls, color_tuple)
- createLinearGradientBrush(cls, x1, y1, x2, y2, stops, spreadMethod = 'pad', transforms = None, units = 'userSpaceOnUse')
- createNativePen(cls, pen)
- createPen(cls, color_tuple)
- createRadialGradientBrush(cls, cx, cy, r, stops, fx = None, fy = None, spreadMethod = 'pad', transforms = None, units = 'userSpaceOnUse')
- DrawImage(cls, gc, image, x, y, width, height)
- DrawText(cls, gc, text, x, y, brush, anchor = 'start')
Draw text at the given x,y position with the color of the given brush.
fixme: Handle gradients...?
- fillPath(cls, gc, path, mode)
- getCurrentPoint(cls, path)
- getFont(cls, font_name = 'Arial')
- GetTextExtent(cls, gc, text)
- gradientPath(cls, gc, path, brush)
- makeMatrix(cls, *args)
- makePath(cls)
- popState(cls, gc)
- pushState(cls, gc)
- rotate(cls, gc, angle)
- scale(cls, gc, sx, sy)
- setBrush(cls, gc, brush)
- setFont(cls, gc, font, brush)
- setFontSize(cls, font, size)
- setFontStyle(cls, font, style)
- setFontWeight(cls, font, weight)
- setPen(cls, gc, pen)
- setPenDash(cls, pen, dasharray, offset)
- strokePath(cls, gc, path)
- translate(cls, gc, *args)