chore: structured src/gui, run clang-format

This commit is contained in:
2025-12-18 13:23:50 +03:00
parent 613c2c80f5
commit 7641846600
55 changed files with 1647 additions and 1399 deletions

View File

@@ -0,0 +1,31 @@
#ifndef CLRSYNC_GUI_SYSTEM_FONT_LOADER_HPP
#define CLRSYNC_GUI_SYSTEM_FONT_LOADER_HPP
#include <imgui.h>
#include <string>
#include <vector>
class font_loader
{
public:
font_loader() = default;
ImFont *load_font(const char *font_name, float size_px);
void push_default_font();
void pop_font();
std::vector<std::string> get_system_fonts();
private:
std::string find_font_path(const char *font_name);
#if defined(_WIN32)
static std::string find_font_windows(const char *font_name);
#elif defined(__APPLE__)
std::vector<unsigned char> load_font_macos(const char *font_name);
#else
std::string find_font_linux(const char *font_name);
#endif
};
#endif // CLRSYNC_GUI_SYSTEM_FONT_LOADER_HPP