Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::UI::Toast Struct Reference

Simple structure to represent a toast notification. More...

#include <UI.h>

Public Member Functions

 Toast (std::string msg, float dur, ImVec4 color)
 Construct a Toast notification.

Public Attributes

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.

Detailed Description

Simple structure to represent a toast notification.

Constructor & Destructor Documentation

◆ Toast()

Raven::UI::Toast::Toast ( std::string msg,
float dur,
ImVec4 color )
inline

Construct a Toast notification.

Parameters
msgThe message to display.
durDuration in seconds.
colorText color of the toast.

Member Data Documentation

◆ 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

Color of the toast text.


The documentation for this struct was generated from the following file:
  • Framework/src/UI/UI.h