mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
24 lines
No EOL
538 B
C++
24 lines
No EOL
538 B
C++
#pragma once
|
|
#include "imgui/imgui.h"
|
|
#include <chrono>
|
|
#include <string>
|
|
|
|
namespace satdump
|
|
{
|
|
namespace widgets
|
|
{
|
|
class TimedMessage
|
|
{
|
|
private:
|
|
ImColor color;
|
|
std::chrono::time_point<std::chrono::steady_clock> *start_time;
|
|
std::string message;
|
|
|
|
public:
|
|
TimedMessage();
|
|
~TimedMessage();
|
|
void set_message(ImColor color, std::string message);
|
|
void draw();
|
|
};
|
|
} // namespace widgets
|
|
} // namespace satdump
|