yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::PopupState Struct Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PopupState() [1/2]

yaze::gui::PopupState::PopupState ( )
default

◆ PopupState() [2/2]

yaze::gui::PopupState::PopupState ( const std::string &  id,
std::function< void()>  callback 
)
inline

Definition at line 37 of file canvas_popup.h.

Member Data Documentation

◆ popup_id

std::string yaze::gui::PopupState::popup_id

Definition at line 21 of file canvas_popup.h.

Referenced by yaze::gui::PopupRegistry::Open().

◆ is_open

bool yaze::gui::PopupState::is_open = false

Definition at line 24 of file canvas_popup.h.

Referenced by yaze::gui::PopupRegistry::Open().

◆ render_callback

std::function<void()> yaze::gui::PopupState::render_callback

Definition at line 28 of file canvas_popup.h.

Referenced by yaze::gui::PopupRegistry::Open().

◆ persist

bool yaze::gui::PopupState::persist = true

Definition at line 31 of file canvas_popup.h.

Referenced by yaze::gui::PopupRegistry::Open().


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