Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

FTLibrary Class Reference

#include <FTLibrary.h>


Detailed Description

FTLibrary class is the global accessor for the Freetype library.

This class encapsulates the Freetype Library. This is a singleton class and ensures that only one FT_Library is in existence at any one time. All constructors are private therefore clients cannot create or instantiate this class themselves and must access it's methods via the static FTLibrary::Instance() function.

Just because this class returns a valid FTLibrary object doesn't mean that the Freetype Library has been successfully initialised. Clients should check for errors. You can initialse the library AND check for errors using the following code... err = FTLibrary::Instance().Error();

See also:
"Freetype 2 Documentation"

Definition at line 29 of file FTLibrary.h.

Public Member Functions

const FT_Library *const  GetLibrary () const
 Gets a pointer to the native Freetype library.

FT_Error Error () const
 Queries the library for errors.

 ~FTLibrary ()
 Destructor.


Static Public Member Functions

const FTLibraryInstance ()
 Global acces point to the single FTLibrary object.


Constructor & Destructor Documentation

FTLibrary::~FTLibrary  ) 
 

Destructor.

Disposes of the Freetype library

Definition at line 11 of file FTLibrary.cpp.


Member Function Documentation

FT_Error FTLibrary::Error  )  const [inline]
 

Queries the library for errors.

Returns:
The current error code.

Definition at line 51 of file FTLibrary.h.

const FT_Library* const FTLibrary::GetLibrary  )  const [inline]
 

Gets a pointer to the native Freetype library.

Returns:
A handle to a FreeType library instance.

Definition at line 44 of file FTLibrary.h.

const FTLibrary & FTLibrary::Instance  )  [static]
 

Global acces point to the single FTLibrary object.

Returns:
The global FTLibrary object.

Definition at line 4 of file FTLibrary.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Dec 5 22:24:07 2004 for FTGL by doxygen 1.3.6