Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

TextClass Class Reference

Class object for Text nodes. More...

Inheritance diagram for TextClass:

NodeClass List of all members.

Public Methods

 TextClass (Browser &browser)
 Constructor.

virtual ~TextClass () throw ()
 Destructor.

virtual const NodeTypePtr createType (const std::string &id, const NodeInterfaceSet &) throw (UnsupportedInterface, std::bad_alloc)
 Create a NodeType.


Public Attributes

FT_Library freeTypeLibrary
 FreeType library handle.


Detailed Description

Class object for Text nodes.


Constructor & Destructor Documentation

TextClass Browser   browser [explicit]
 

Constructor.

Parameters:
browser the Browser associated with this NodeClass.

~TextClass   throw () [virtual]
 

Destructor.


Member Function Documentation

const NodeTypePtr createType const std::string &    id,
const NodeInterfaceSet   interfaces
throw (UnsupportedInterface, std::bad_alloc) [virtual]
 

Create a NodeType.

Parameters:
id the name for the new NodeType.
interfaces the interfaces for the new NodeType.
Returns:
a NodeTypePtr to a NodeType capable of creating Text nodes.
Exceptions:
UnsupportedInterface if interfaces includes an interface not supported by TextClass.
std::bad_alloc if memory allocation fails.

Implements NodeClass.


Member Data Documentation

FT_Library freeTypeLibrary
 

FreeType library handle.

See also:
http://freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Library