class EE::UI::UIApplication¶
Overview¶
#include <uiapplication.hpp> class UIApplication { public: // structs struct Settings; // construction UIApplication(const WindowSettings& windowSettings, const Settings& appSettings = Settings(), const ContextSettings& contextSettings = ContextSettings()); virtual ~UIApplication(); // methods EE::Window::Window* getWindow() const; UISceneNode* getUI() const; int run(); void setShowMemoryManagerResult(bool show); bool showMemoryManagerResult() const; String::HashType getStyleSheetDefaultMarker() const; static void setSystemFontsEnabledByDefault(bool enabled); static bool systemFontsEnabledByDefault(); };
Detailed Documentation¶
Construction¶
virtual ~UIApplication()
All resources allocated by the library will be safetely released.
Methods¶
EE::Window::Window* getWindow() const
The main window.
UISceneNode* getUI() const
The UI scene node, this node handles the whole UI. This is the equivalent to the HTML DOM Document
int run()
Runs the application until window is closed
Returns:
EXIT_SUCCESS if application run successfully
void setShowMemoryManagerResult(bool show)
Set if the application must show the memory manager result after closing the main window.
static void setSystemFontsEnabledByDefault(bool enabled)
Controls the system-font fallback policy used by Settings::enableSystemFonts when unset. Enabled by default. Test runners can disable it before constructing any UIApplication.