MetaImGUI 1.0.0
ImGui Application Template for C++20
Loading...
Searching...
No Matches
MetaImGUI::UIEvents Struct Reference

Decoupled UI-event bus shared between UIRenderer and Application. More...

#include <UIEvents.h>

Collaboration diagram for MetaImGUI::UIEvents:

Public Attributes

Signal exitRequested
 
Signal toggleDemoWindow
 
Signal showDemoWindow
 
Signal checkUpdatesRequested
 
Signal showAboutRequested
 
Signal showInputDialogRequested
 
Signal toggleISSTracker
 

Detailed Description

Decoupled UI-event bus shared between UIRenderer and Application.

UIRenderer fires these signals from menu items and buttons; Application connects slots that react (toggle dialogs, kick off async work, request close). This keeps UIRenderer free of the std::function callback soup it used to take as parameters and keeps event ownership in one obvious place.

Definition at line 33 of file UIEvents.h.

Member Data Documentation

◆ checkUpdatesRequested

Signal MetaImGUI::UIEvents::checkUpdatesRequested

◆ exitRequested

Signal MetaImGUI::UIEvents::exitRequested

◆ showAboutRequested

Signal MetaImGUI::UIEvents::showAboutRequested

◆ showDemoWindow

Signal MetaImGUI::UIEvents::showDemoWindow

◆ showInputDialogRequested

Signal MetaImGUI::UIEvents::showInputDialogRequested

◆ toggleDemoWindow

Signal MetaImGUI::UIEvents::toggleDemoWindow

◆ toggleISSTracker

Signal MetaImGUI::UIEvents::toggleISSTracker

The documentation for this struct was generated from the following file: