| |
- RendererBase
class RendererBase |
|
Base class for renderers to implement. The renderer hands out window handles when windows
are created, and tracks the list of draw primatives for each window. This is for 2D only. |
|
Methods defined here:
- __init__(self, w, h, fullscreen)
- addRect(self, rect)
- createWindow(self, title)
- describeWindow(self, windowHandle, drawList)
- destroyWindow(self, windowHandle)
- doesDirtyRects(self)
- draw(self, windows)
- drawGradient(self, rect, c1, c2, c3, c4)
- Draws a gradient rectangle
- drawImage(self, rect, filename)
- Draws an image at a position
- drawImageRotated(self, rect, filename, rotDegrees, textureEffect)
- drawLine(self, x1, y1, x2, y2, color)
- Draws a line
- drawRect(self, color, rect)
- Fills a rectangle with the specified color.
- drawText(self, text, pos, color, font=None)
- Draws the text on the screen in the specified position
- drawView(self, rect, handle)
- getMustFill(self)
- getTextSize(self, text, font=None)
- loadImage(self, filename)
- moveToFront(self, windowHandle)
- moveWindow(self, windowHandle, x, y)
- packColor(self, r, g, b, a=255)
- quit(self)
- readTimer(self)
- run(self, callback=None)
- This is a default way of _running_ an application using
the current renderer.
- setClipping(self, rect=None)
- set the clipping rectangle for the main screen. defaults to clearing the clipping rectangle.
- setDrawList(self, drawList)
- setMustFill(self)
- unpackColor(self, color)
- update(self)
Data and non-method functions defined here:
- __doc__ = 'Base class for renderers to implement. The rende...atives for each window. This is for 2D only.\n '
- str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
- __module__ = 'pyui.rendererBase'
- str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
- name = 'Base'
- str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
| |