FastUIDraw
Public Member Functions | Protected Member Functions | List of all members
fastuidraw::FreeTypeFace::GeneratorBase Class Referenceabstract

A Generator provides an interface to create FreeTypeFace objects. More...

#include <freetype_face.hpp>

Inheritance diagram for fastuidraw::FreeTypeFace::GeneratorBase:
Inheritance graph
[legend]

Public Member Functions

enum return_code check_creation (reference_counted_ptr< FreeTypeLib > lib=reference_counted_ptr< FreeTypeLib >()) const
 
virtual reference_counted_ptr< FreeTypeFacecreate_face (reference_counted_ptr< FreeTypeLib > lib=reference_counted_ptr< FreeTypeLib >()) const
 
- Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter >
 reference_counted_base (void)
 

Protected Member Functions

virtual FT_Face create_face_implement (FT_Library lib) const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter >
static void add_reference (const reference_counted_base< T, Counter > *p)
 
static void remove_reference (const reference_counted_base< T, Counter > *p)
 

Detailed Description

A Generator provides an interface to create FreeTypeFace objects.

Definition at line 53 of file freetype_face.hpp.

Member Function Documentation

◆ check_creation()

enum return_code fastuidraw::FreeTypeFace::GeneratorBase::check_creation ( reference_counted_ptr< FreeTypeLib lib = reference_counted_ptrFreeTypeLib >()) const

Checks if the GeneratorBase object can create a face (by calling create_face_implement()). Returns routine_fail if the object is unable to create a face.

Parameters
libFreeTypeLib with which to test face creation; if lib is nullptr, then lib will be sustituted with a newly created FreeTypeLib object that only the returned FreeTypeFace will use.

◆ create_face()

virtual reference_counted_ptr<FreeTypeFace> fastuidraw::FreeTypeFace::GeneratorBase::create_face ( reference_counted_ptr< FreeTypeLib lib = reference_counted_ptrFreeTypeLib >()) const
virtual

Public interface to create a FreeTypeFace object.

Parameters
libFreeTypeLib with which to create the FT_Face; if lib is nullptr, then lib will be sustituted with a newly created FreeTypeLib object that only the returned FreeTypeFace will use.

◆ create_face_implement()

virtual FT_Face fastuidraw::FreeTypeFace::GeneratorBase::create_face_implement ( FT_Library  lib) const
protectedpure virtual

To be implemented by a derived class to create a FT_Face using a given (and locked by the caller) FT_Library object.

Parameters
libFT_Libray with which to create the FT_Face

Implemented in fastuidraw::FreeTypeFace::GeneratorMemory, and fastuidraw::FreeTypeFace::GeneratorFile.


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