Attributes
- window
The window that this GraphicsContext is being drawn to. It is OK to leave this as None if the graphics context is used as a backbuffer; however, in such cases, it is more appropriate to use a GC from Kiva directly as opposed to using the Enable one, as some draw methods may need to parent controls or dialogs from the Window.
window = Instance(AbstractWindow)
Method summary
- __init__(self, *args, **kwargs)
- alpha(self, alpha)
- clear_clip(self, color, coordinates)
- clear_clip_region(self, color, update_region)
- clip_to_rect(self, x, y, width, height)
- stretch_draw(self, image, x, y, dx, dy)
Methods
- __init__(self, *args, **kwargs)
- alpha(self, alpha)
- clear_clip(self, color, coordinates)
Clip and clear a Kiva graphics context to a specified area and color
- clear_clip_region(self, color, update_region)
Clip and clear a Kiva graphics context to a specified region and color
- clip_to_rect(self, x, y, width, height)
- stretch_draw(self, image, x, y, dx, dy)
Draws an image 'stretched' to fit a specified area