Ultralight C++ API 1.3.0
|
#include <AppCore/App.h>
Main application singleton (use this if you want to let the library manage window creation).
This convenience class automatically sets up the Renderer, creates a run loop, and handles all painting and platform-specific operations for you.
Static Public Member Functions | |
static RefPtr< App > | Create (Settings settings=Settings(), Config config=Config()) |
Create the App singleton. | |
static App * | instance () |
Get the App singleton. | |
Public Member Functions | |
virtual const Settings & | settings () const =0 |
Get the settings this App was created with. | |
virtual void | set_listener (AppListener *listener)=0 |
Set an AppListener to receive callbacks for app-related events. | |
virtual AppListener * | listener ()=0 |
Get the AppListener, if any. | |
virtual bool | is_running () const =0 |
Whether or not the App is running. | |
virtual Monitor * | main_monitor ()=0 |
Get the main monitor (this is never NULL). | |
virtual RefPtr< Renderer > | renderer ()=0 |
Get the underlying Renderer instance. | |
virtual void | Run ()=0 |
Run the main loop. | |
virtual void | Quit ()=0 |
Quit the application. | |
Public Member Functions inherited from ultralight::RefCounted | |
virtual void | AddRef () const =0 |
virtual void | Release () const =0 |
virtual int | ref_count () const =0 |
Protected Member Functions | |
virtual | ~App () |
Protected Member Functions inherited from ultralight::RefCounted | |
virtual | ~RefCounted () |
|
protectedvirtual |
|
static |
Create the App singleton.
settings | Settings to customize App runtime behavior. |
config | Config options for the Ultralight renderer. |
|
pure virtual |
Whether or not the App is running.
|
pure virtual |
Get the AppListener, if any.
|
pure virtual |
Get the main monitor (this is never NULL).
|
pure virtual |
Quit the application.
Get the underlying Renderer instance.
|
pure virtual |
Run the main loop.
|
pure virtual |
Set an AppListener to receive callbacks for app-related events.
|
pure virtual |
Get the settings this App was created with.