cheshirekow  v0.1.0
freetype::LibraryDelegate Class Reference

c++ interface on top of c-object pointer More...

#include <cpp_freetype/Library.h>

Public Member Functions

void add_default_modules ()
 Add the set of default drivers to a given library object. More...
 
RefPtr< Facenew_face (const char *filepath, Long face_index)
 Add a new module to a given library instance. More...
 
RValuePair< RefPtr< Face >, Errornew_face_e (const char *filepath, Long face_index)
 calls Library::open_face to open a font by it's pathname More...
 
LibraryDelegateoperator-> ()
 
const LibraryDelegateoperator-> () const
 

Private Member Functions

 LibraryDelegate (FT_Library ptr=0)
 constructable only by RefPtr<Library> More...
 
 LibraryDelegate (const LibraryDelegate &)
 not cop-constructable More...
 
LibraryDelegateoperator= (const LibraryDelegate &)
 not copy-assignable More...
 

Private Attributes

FT_Library m_ptr
 

Friends

class RefPtr< Library >
 

Detailed Description

c++ interface on top of c-object pointer

Definition at line 48 of file Library.h.

Constructor & Destructor Documentation

freetype::LibraryDelegate::LibraryDelegate ( FT_Library  ptr = 0)
inlineprivate

constructable only by RefPtr<Library>

Definition at line 54 of file Library.h.

freetype::LibraryDelegate::LibraryDelegate ( const LibraryDelegate )
private

not cop-constructable

Member Function Documentation

void freetype::LibraryDelegate::add_default_modules ( )

Add the set of default drivers to a given library object.

This is only useful when you create a library object with Library::create (usually to plug a custom memory manager).

RefPtr<Face> freetype::LibraryDelegate::new_face ( const char *  filepath,
Long  face_index 
)

Add a new module to a given library instance.

Parameters
[in]clazzpointer to the class descriptor for the module
Returns
FreeType error code. 0 means success
Note
An error will be returned if a module already exists by that name, or if the module requires a version of FreeType that is too great.Find a module by it's name
Parameters
[in]module_nameThe module's name (as an ASCII string)
Returns
A module handle. 0 if none was found.
Note
FreeType's internal modules aren't documented very well, and you should look up the source code for details.Remove a given module from a library instance
Parameters
[in]modulea handle to a module object
Returns
FreeType error code. 0 means success
Note
The module object is destroyed by the function in case of successcalls Library::open_face to open a font by it's pathname
Parameters
[in]filepathpath of the font file
[in]face_indexindex of the face within the font, 0 indexed
Returns
A handle to a new face object. If face_index is greater than or equal to zro, it must be non-NULL. See Library::open_face for more details
RValuePair< RefPtr<Face>, Error> freetype::LibraryDelegate::new_face_e ( const char *  filepath,
Long  face_index 
)

calls Library::open_face to open a font by it's pathname

Parameters
[in]filepathpath of the font file
[in]face_indexindex of the face within the font, 0 indexed
Returns
A handle to a new face object. If face_index is greater than or equal to zro, it must be non-NULL. See Library::open_face for more details
LibraryDelegate* freetype::LibraryDelegate::operator-> ( )
inline

Definition at line 67 of file Library.h.

const LibraryDelegate* freetype::LibraryDelegate::operator-> ( ) const
inline

Definition at line 68 of file Library.h.

LibraryDelegate& freetype::LibraryDelegate::operator= ( const LibraryDelegate )
private

not copy-assignable

Friends And Related Function Documentation

friend class RefPtr< Library >
friend

Definition at line 65 of file Library.h.

Member Data Documentation

FT_Library freetype::LibraryDelegate::m_ptr
private

Definition at line 51 of file Library.h.


The documentation for this class was generated from the following file: