.. include:: headings.inc .. currentmodule:: lib.fancytext .. highlight:: python .. _lib.fancytext.Renderer: ========================================================================================================================================== |phoenix_title| **Renderer** ========================================================================================================================================== Class for rendering XML marked up text. See the module docstring for a description of the markup. This class must be subclassed and the methods the methods that do the drawing overridden for a particular output device. | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **Renderer** .. raw:: html

Inheritance diagram of Renderer

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~lib.fancytext.Renderer.__init__` :meth:`~lib.fancytext.Renderer.characterData` :meth:`~lib.fancytext.Renderer.end` :meth:`~lib.fancytext.Renderer.end_font` :meth:`~lib.fancytext.Renderer.end_sub` :meth:`~lib.fancytext.Renderer.end_sup` :meth:`~lib.fancytext.Renderer.endElement` :meth:`~lib.fancytext.Renderer.getCurrentColor` :meth:`~lib.fancytext.Renderer.getCurrentFont` :meth:`~lib.fancytext.Renderer.getCurrentPen` :meth:`~lib.fancytext.Renderer.getY` :meth:`~lib.fancytext.Renderer.renderCharacterData` :meth:`~lib.fancytext.Renderer.setY` :meth:`~lib.fancytext.Renderer.start` :meth:`~lib.fancytext.Renderer.start_FancyText` :meth:`~lib.fancytext.Renderer.start_font` :meth:`~lib.fancytext.Renderer.start_sub` :meth:`~lib.fancytext.Renderer.start_sup` :meth:`~lib.fancytext.Renderer.startElement` :meth:`~lib.fancytext.Renderer.updateDims` ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~lib.fancytext.Renderer.y` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: Renderer Class for rendering XML marked up text. See the module docstring for a description of the markup. This class must be subclassed and the methods the methods that do the drawing overridden for a particular output device. .. method:: __init__(self, dc=None, x=0, y=None) .. method:: characterData(self, data) .. method:: end(self) .. method:: end_font(self) .. method:: end_sub(self) .. method:: end_sup(self) .. method:: endElement(self, name) .. method:: getCurrentColor(self) .. method:: getCurrentFont(self) .. method:: getCurrentPen(self) .. method:: getY(self) .. method:: renderCharacterData(self, data, x, y) .. method:: setY(self, value) .. method:: start(self, attrs, code=chr(Alpha+i)) .. method:: start_FancyText(self, attrs) .. method:: start_font(self, attrs) .. method:: start_sub(self, attrs) .. method:: start_sup(self, attrs) .. method:: startElement(self, name, attrs) .. method:: updateDims(self, width, height, descent, externalLeading) .. attribute:: y See :meth:`~Renderer.setY` , :meth:`~Renderer.getY`