7#include <imgui-platform-kit/user_interface_window.h>
24 class LogWindow final :
public imgui_kit::UserInterfaceWindow
27 inline static std::vector<LogEntry> logs;
28 inline static ImGuiTextFilter filter;
29 inline static bool autoScroll =
true;
30 inline static bool isWindowActive =
false;
31 inline static bool s_expanded =
false;
35 static void addLog(
const ImVec4& color,
const char* fmt, ...) IM_FMTARGS(2);
37 static bool isActive() {
return isWindowActive; }
38 static void setActive(
bool v) { isWindowActive = v; }
42 static void clean() { logs.clear(); }
44 static void renderContent();
Definition log_window.h:25
static void setExpanded(bool v)
Definition log_window.h:39
static void setActive(bool v)
Definition log_window.h:38
LogWindow()
Definition log_window.cpp:6
static bool isActive()
Definition log_window.h:37
void render() override
Definition log_window.h:36
static void addLog(const ImVec4 &color, const char *fmt,...) IM_FMTARGS(2)
Definition log_window.cpp:60
~LogWindow() override=default
ImFont * g_MonoMediumFont
ImFont * g_MediumIconsFont
ImFont * g_BlackLargeFont
Definition control_bar_window.h:10
Definition log_window.h:19
std::string message
Definition log_window.h:20
ImVec4 color
Definition log_window.h:21