Python: module pyui.rendererBase

pyui.rendererBase | index c:\ninja\projects\pyui\pyui\rendererbase.py

`# PyUI
# Copyright (C) 2001-2002 Sean C. Riley
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA`

Modules
`` |  |
time |  |  |

Classes
`` |  | 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.`

Data
`` |  | __file__ = r'.\pyui\rendererBase.pyc' __name__ = 'pyui.rendererBase'