Papyrus::Renderable Class Reference

#include <papyrus/renderable.h>

Inheritance diagram for Papyrus::Renderable:

Inheritance graph
[legend]
List of all members.

Detailed Description

Papyrus::Renderable is a common base for all classes capable of rendering themselves into a cairomm context.

Renderable provides the pure virtual render() method, which takes a cairomm context as its only parameter. Descendants of Papyrus::Renderable provide their own implementations of render() that allow them to be rendered into the supplied cairomm context.

The render() method makes it possible to render a hierarchy (or hierarchies) of Renderables into a cairomm context employing a visitor pattern.

Inheriting from Papyrus::Renderable

When:

Inherit from Papyrus::Renderable when you want your object to be capable of being rendered into a cairo context through a common interface.

Tips:

Don't forget to provide your own implementation of render() since it's a pure virtual method.

Author:
Rick L Vinyard Jr


Public Types

typedef PapyrusSmartPointer<
Renderable
pointer

Public Member Functions

virtual void render (Cairo::RefPtr< Cairo::Context > cairo)=0
 PAPYRUS_CLASS_NAME ("Renderable")


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 10:01:48 2007 by  doxygen 1.5.1