LiteFX::App
The base class for an application.
Synopsis
Declared in <litefx/app.hpp>
class [[dllexport, dllimport]] App;
Type Aliases
Member Functions
| Name | Description |
App [constructor] | Initializes a new app instance. |
~App [destructor] [virtual] | Destructor |
operator= | Assignment operators |
findBackend | Returns the registered backend instance for a type index. |
getBackend | Returns the registered backend instance for a type index. |
getBackends | Returns all registered backend instances of a backend type. |
name [virtual] | Returns the name of the app. |
onBackendStart | Sets a callback that is called, if a backend is started. |
onBackendStop | Sets a callback that is called, if a backend is stopped. |
operator[] | Returns the registered backend instance for a type index. |
platform | Returns the platform, the app is running on. |
resize | Called, if the application window resizes. |
run | Starts the application. |
startBackend | Attempts to start a backend of type TBackend and stops the active backend of the same BackendType, if any. |
stopBackend | Stops a backend, if it is currently running. |
use [virtual] | Adds a backend to the app. |
version [virtual] | Returns the version of the app. |
Static Member Functions
| Name | Description |
build | Creates a new application builder. |
Data Members
| Name | Description |
backendStarted | Invoked, if a backend has been started. |
backendStopped | Invoked, if a backend has been stopped. |
initializing | Invoked during initialization. |
resized | Invoked, if the app window or context gets resized. |
shutdown | Invoked, if the application has is shutting down. |
startup | Invoked, if the application has been started. |
Protected Member Functions
Friends
See Also
AppBuilder
AppVersion