FastUIDraw
|
A Generator provides an interface to create FreeTypeFace objects. More...
#include <freetype_face.hpp>
Public Member Functions | |
enum return_code | check_creation (reference_counted_ptr< FreeTypeLib > lib=reference_counted_ptr< FreeTypeLib >()) const |
virtual reference_counted_ptr< FreeTypeFace > | create_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) |
A Generator provides an interface to create FreeTypeFace objects.
Definition at line 53 of file freetype_face.hpp.
enum return_code fastuidraw::FreeTypeFace::GeneratorBase::check_creation | ( | reference_counted_ptr< FreeTypeLib > | lib = reference_counted_ptr< FreeTypeLib >() | ) | 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.
lib | FreeTypeLib 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. |
|
virtual |
Public interface to create a FreeTypeFace object.
lib | FreeTypeLib 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. |
|
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.
lib | FT_Libray with which to create the FT_Face |
Implemented in fastuidraw::FreeTypeFace::GeneratorMemory, and fastuidraw::FreeTypeFace::GeneratorFile.