124e86387b
- converted all line endings in cpp/hpp files to dos
33 lines
591 B
C++
33 lines
591 B
C++
namespace Components
|
|
{
|
|
class Toast : public Component
|
|
{
|
|
public:
|
|
Toast();
|
|
~Toast();
|
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
|
const char* getName() { return "Toast"; };
|
|
#endif
|
|
|
|
static void Show(std::string image, std::string title, std::string description, int length);
|
|
|
|
private:
|
|
class UIToast
|
|
{
|
|
public:
|
|
std::string image;
|
|
std::string title;
|
|
std::string desc;
|
|
int length;
|
|
int start;
|
|
};
|
|
|
|
static void Handler();
|
|
static void Draw(UIToast* toast);
|
|
|
|
static std::queue<UIToast> Queue;
|
|
static std::mutex Mutex;
|
|
};
|
|
}
|