Simple structure to represent a toast notification.
More...
#include <UI.h>
|
| | Toast (std::string msg, float dur, ImVec4 color) |
| | Construct a Toast notification.
|
|
| std::string | Message |
| | The message text of the toast.
|
| float | Duration |
| | How long the toast lasts, in seconds.
|
| float | ElapsedTime = 0.0f |
| | Time elapsed since the toast was created.
|
| ImVec4 | TextColor |
| | Color of the toast text.
|
Simple structure to represent a toast notification.
◆ Toast()
| Raven::UI::Toast::Toast |
( |
std::string | msg, |
|
|
float | dur, |
|
|
ImVec4 | color ) |
|
inline |
Construct a Toast notification.
- Parameters
-
| msg | The message to display. |
| dur | Duration in seconds. |
| color | Text color of the toast. |
◆ Duration
| float Raven::UI::Toast::Duration |
How long the toast lasts, in seconds.
◆ ElapsedTime
| float Raven::UI::Toast::ElapsedTime = 0.0f |
Time elapsed since the toast was created.
◆ Message
| std::string Raven::UI::Toast::Message |
The message text of the toast.
◆ TextColor
| ImVec4 Raven::UI::Toast::TextColor |
The documentation for this struct was generated from the following file: