|
StringView | name () const noexcept override |
| Returns the name of the app.
|
|
AppVersion | version () const noexcept override |
| Returns the version of the app.
|
|
| TestApp () |
|
StringView | name () const noexcept override |
| Returns the name of the app.
|
|
AppVersion | version () const noexcept override |
| Returns the version of the app.
|
|
| TestApp () |
|
| App () |
| Initializes a new app instance.
|
|
| App (const App &)=delete |
|
| App (App &&) noexcept=delete |
|
auto | operator= (const App &)=delete |
|
auto | operator= (App &&) noexcept=delete |
|
virtual | ~App () noexcept |
|
Platform | platform () const noexcept |
| Returns the platform, the app is running on.
|
|
const IBackend * | operator[] (std::type_index type) const |
| Returns the registered backend instance for a type index.
|
|
const IBackend * | getBackend (std::type_index type) const |
| Returns the registered backend instance for a type index.
|
|
Enumerable< const IBackend & > | getBackends (const BackendType type) const |
| Returns all registered backend instances of a backend type.
|
|
template<typename TBackend >
requires meta::implements<TBackend, IBackend> |
void | onBackendStart (const std::function< bool(TBackend *)> &callback) |
| Sets a callback that is called, if a backend is started.
|
|
template<typename TBackend >
requires meta::implements<TBackend, IBackend> |
void | onBackendStop (const std::function< void(TBackend *)> &callback) |
| Sets a callback that is called, if a backend is stopped.
|
|
template<typename TBackend >
requires meta::implements<TBackend, IBackend> |
const TBackend * | findBackend () const |
| Returns the registered backend instance for a type index.
|
|
template<typename TBackend >
requires meta::implements<TBackend, IBackend> |
void | startBackend () |
| Attempts to start a backend of type TBackend and stops the active backend of the same BackendType, if any.
|
|
template<typename TBackend >
requires meta::implements<TBackend, IBackend> |
void | stopBackend () |
| Stops a backend, if it is currently running.
|
|
virtual void | use (UniquePtr< IBackend > &&backend) |
| Adds a backend to the app.
|
|
void | run () |
| Starts the application.
|
|
void | resize (int width, int height) |
| Called, if the application window resizes.
|
|