logmeow/misc.h

19 lines
622 B
C
Raw Normal View History

2023-01-16 04:05:25 +00:00
#pragma once
#include <string>
2023-02-11 15:15:21 +00:00
#include <imgui.h>
2023-01-16 04:05:25 +00:00
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-02-11 15:15:21 +00:00
// don't spill __all__ of imgui_internal.h
bool IsKeyPressed(ImGuiKeyChord key_chord, bool repeat = true);
2023-01-29 10:08:27 +00:00
}; // namespace ImGui