2023-01-16 04:05:25 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-01-29 10:08:27 +00:00
|
|
|
#include <imgui.h>
|
2023-01-16 04:05:25 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
std::string quote(const std::string& str);
|
2023-01-17 15:35:08 +00:00
|
|
|
void throw_system_error(int err, const char* what);
|
|
|
|
void throw_system_error(const char* what);
|
|
|
|
void throw_system_error(std::string what);
|
2023-01-29 10:08:27 +00:00
|
|
|
|
|
|
|
namespace ImGui {
|
|
|
|
void TextUnformatted(const std::string& str);
|
2023-02-02 12:50:28 +00:00
|
|
|
bool RedButton(const char* label);
|
|
|
|
bool Button(const char* label, bool enabled);
|
2023-02-04 07:31:50 +00:00
|
|
|
bool BeginWithCloseShortcut(const char* label, bool* p_open, ImGuiWindowFlags flags = 0);
|
2023-01-29 10:08:27 +00:00
|
|
|
}; // namespace ImGui
|