forked from IQ.Lvbs/IQ.Pilot
IQ.Pilot Release Commit @ 0b96bd5
This commit is contained in:
19
iqpilot/tools/cabana/ui/dialogs/messagebox.h
Normal file
19
iqpilot/tools/cabana/ui/dialogs/messagebox.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
|
||||
|
||||
namespace MessageBox {
|
||||
|
||||
|
||||
void information(const std::string &title, const std::string &text, std::function<void()> on_close = nullptr);
|
||||
void warning(const std::string &title, const std::string &text, const std::string &detailed_text = "",
|
||||
std::function<void()> on_close = nullptr);
|
||||
|
||||
void question(const std::string &title, const std::string &text, std::function<void(bool ok)> on_result);
|
||||
|
||||
void draw();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user