State for a single persistent popup. More...
#include <canvas_popup.h>
Public Member Functions | |
PopupState ()=default | |
PopupState (const std::string &id, std::function< void()> callback) | |
Public Attributes | |
std::string | popup_id |
bool | is_open = false |
std::function< void()> | render_callback |
bool | persist = true |
State for a single persistent popup.
POD struct representing the state of a popup that persists across frames. Popups remain open until explicitly closed or the user dismisses them.
Definition at line 19 of file canvas_popup.h.
|
default |
|
inline |
Definition at line 37 of file canvas_popup.h.
std::string yaze::gui::PopupState::popup_id |
Definition at line 21 of file canvas_popup.h.
Referenced by yaze::gui::PopupRegistry::Open().
bool yaze::gui::PopupState::is_open = false |
Definition at line 24 of file canvas_popup.h.
Referenced by yaze::gui::PopupRegistry::Open().
std::function<void()> yaze::gui::PopupState::render_callback |
Definition at line 28 of file canvas_popup.h.
Referenced by yaze::gui::PopupRegistry::Open().
bool yaze::gui::PopupState::persist = true |
Definition at line 31 of file canvas_popup.h.
Referenced by yaze::gui::PopupRegistry::Open().