| |
- 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, title)
- addRect(self, rect)
- createFont(self, face, size, flags)
- 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, pieceRect=None)
- 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)
- getImageSize(self, filename)
- Return the width and height of the image
- getMustFill(self)
- getScreenSize(self)
- getTextSize(self, text, font=None)
- loadImage(self, filename, label=None)
- 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.
- setBackMethod(self, drawBackMethod, *args)
- Set the method used to draw the background.
- setClipping(self, rect=None)
- set the clipping rectangle for the main screen. defaults to clearing the clipping rectangle.
- setDrawList(self, drawList)
- setMustFill(self)
- setWindowTitle(self, title)
- sets the title of the OS main window.
- setup2D(self)
- must be called in background drawing method to do 2D drawing.
- teardown2D(self)
- must be called in background drawing method to end 2D drawing.
- 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.
| |