class
#include <nCine/MainApplication.h>
MainApplication Main entry point and handler for standard (desktop) applications.
Base classes
- class Application
- Base class for main entry points of nCine applications.
Public static functions
- static auto Run(CreateAppEventHandlerDelegate createAppEventHandler, int argc, NativeArgument* argv) -> int
- Entry point method to be called in the
main()
/wWinMain()
function.
Public functions
- void Quit() override
- Raises the quit flag.
- auto EnablePlayStationExtendedSupport(bool enable) -> bool override
- Switches PS4 and PS5 controllers to use extended protocol which enables rumble and other features.
- auto GetUserName() -> String override
- Returns the username of the logged-in user.
- auto OpenUrl(StringView url) -> bool override
- Opens the specified URL in a default web browser.
- auto CanShowScreenKeyboard() -> bool override
- Returns
true
if screen (software) keyboard is supported and ShowScreenKeyboard() should succeed. - auto ToggleScreenKeyboard() -> bool override
- Toggles the screen (software) keyboard.
- auto ShowScreenKeyboard() -> bool override
- Shows the screen (software) keyboard.
- auto HideScreenKeyboard() -> bool override
- Hides the screen (software) keyboard.
Friends
- auto theApplication() -> Application&
- Returns application instance.