Canvas = None
CanvasWindow = None
Use a singleton for the font cache
GlobalFontCache = MRU()
Because Pyglet 1.1 uses persistent Label objects to efficiently lay out and render text, we cache these globally to minimize the creation time. An MRU is not really the right structure to use here, though. (We typically expect that the same numbers of labels will be rendered.)
GlobalTextCache = MRU()
Returns the appropriate DPI setting for the system
Returns a Pylget Font object for the given Agg or Kiva font
Returns a Pyglet Label object for the given text and font
Adapt an image object into a numpy array.
Typically, this is used to adapt an agg GraphicsContextArray which has been used for image storage in Kiva applications.
| Local name | Refers to |
|---|---|
| affine_from_values | enthought.kiva.affine.affine_from_values |
| array | numpy.array |
| ArrayInterfaceImage | pygarrayimage.arrayimage.ArrayInterfaceImage |
| Batch | pyglet.graphics.Batch |
| BOLD | enthought.kiva.constants.BOLD |
| BOLD_ITALIC | enthought.kiva.constants.BOLD_ITALIC |
| ctypes | ctypes |
| floor | math.floor |
| Font | enthought.kiva.fonttools.font.Font |
| gl | pyglet.gl |
| ITALIC | enthought.kiva.constants.ITALIC |
| Label | pyglet.text.Label |
| load_font | pyglet.font.load |
| ndarray | numpy.ndarray |
| pyglet | pyglet |
| PygletFont | pyglet.font.base.Font |
| transform_points | enthought.kiva.affine.transform_points |
© 2002-2008 Enthought, Inc.