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

#include <toast_manager.h>

Public Attributes

std::string message
 
ToastType type = ToastType::kInfo
 
float ttl_seconds = 3.0f
 
std::string action_label
 Optional button label (empty = message-only toast).
 
std::function< void()> on_action
 
std::chrono::steady_clock::time_point last_tick
 

Detailed Description

Definition at line 26 of file toast_manager.h.

Member Data Documentation

◆ message

std::string yaze::editor::Toast::message

Definition at line 27 of file toast_manager.h.

Referenced by yaze::editor::ToastManager::Draw().

◆ type

ToastType yaze::editor::Toast::type = ToastType::kInfo

Definition at line 28 of file toast_manager.h.

Referenced by yaze::editor::ToastManager::Draw().

◆ ttl_seconds

float yaze::editor::Toast::ttl_seconds = 3.0f

Definition at line 29 of file toast_manager.h.

Referenced by yaze::editor::ToastManager::Draw().

◆ action_label

std::string yaze::editor::Toast::action_label

Optional button label (empty = message-only toast).

Definition at line 31 of file toast_manager.h.

Referenced by yaze::editor::ToastManager::Draw().

◆ on_action

std::function<void()> yaze::editor::Toast::on_action

Definition at line 32 of file toast_manager.h.

Referenced by yaze::editor::ToastManager::Draw().

◆ last_tick

std::chrono::steady_clock::time_point yaze::editor::Toast::last_tick

Definition at line 33 of file toast_manager.h.

Referenced by yaze::editor::ToastManager::Draw().


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