Ultralight
1.0.0
A fast, lightweight, HTML UI engine for native apps.
|
Platform singleton to configure Ultralight and provide user-defined implementations for various platform operations. More...
#include <Platform.h>
Public Member Functions | |
virtual void | set_config (const Config &config)=0 |
Set the Config. | |
virtual const Config & | config () const =0 |
Get the Config. | |
virtual void | set_gpu_driver (GPUDriver *gpu_driver)=0 |
Set the GPU Driver (will handle all rendering) More... | |
virtual GPUDriver * | gpu_driver () const =0 |
Get the GPU Driver. | |
virtual void | set_font_loader (FontLoader *font_loader)=0 |
Set the Font Loader (will be used to map font families to actual fonts) More... | |
virtual FontLoader * | font_loader () const =0 |
Get the Font Loader. | |
virtual void | set_file_system (FileSystem *file_system)=0 |
Set the File System (will be used for all file system operations) More... | |
virtual FileSystem * | file_system () const =0 |
Get the File System. | |
Static Public Member Functions | |
static Platform & | instance () |
Get the Platform singleton. | |
Platform singleton to configure Ultralight and provide user-defined implementations for various platform operations.
A default GPUDriver and FontLoader are provided, you must provide your own FileSystem interface if you want to load local files.
For more info about the defaults
Definition at line 37 of file Platform.h.
|
pure virtual |
Set the File System (will be used for all file system operations)
file_system | A user-defined FileSystem implementation, ownership remains with the caller. |
|
pure virtual |
Set the Font Loader (will be used to map font families to actual fonts)
font_loader | A user-defined FontLoader implementation, ownership remains with the caller. |
|
pure virtual |
Set the GPU Driver (will handle all rendering)
gpu_driver | A user-defined GPUDriver implementation, ownership remains with the caller. |