ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
asw::ui::Toast Struct Reference

A short message shown at the top of the screen, see Root::toast. More...

#include <root.h>

Public Attributes

std::string text
 The message.
 
asw::Texture icon { }
 Picture before the text, e.g. an achievement icon. Optional.
 
float seconds = 0.0F
 How long it stays, the theme toast seconds when 0.
 
std::optional< asw::Color > color { }
 Text colour, the theme toast text colour when empty.
 

Detailed Description

A short message shown at the top of the screen, see Root::toast.

Definition at line 29 of file root.h.

Member Data Documentation

◆ color

std::optional<asw::Color> asw::ui::Toast::color { }

Text colour, the theme toast text colour when empty.

Definition at line 40 of file root.h.

◆ icon

asw::Texture asw::ui::Toast::icon { }

Picture before the text, e.g. an achievement icon. Optional.

Definition at line 34 of file root.h.

◆ seconds

float asw::ui::Toast::seconds = 0.0F

How long it stays, the theme toast seconds when 0.

Definition at line 37 of file root.h.

◆ text

std::string asw::ui::Toast::text

The message.

Definition at line 31 of file root.h.


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