31 std::array<ImVec4, ImGuiCol_COUNT> colors{};
32 ImGuiStyle base_style{};
33 std::filesystem::path font_path;
34 float font_size_pixels = 13.0f;
35 std::filesystem::path icon_font_path;
36 float icon_font_size_pixels = 13.0f;
37 ImWchar icon_font_range_min = 0;
38 ImWchar icon_font_range_max = 0;
39 std::filesystem::path mono_font_path;
40 float mono_font_size_pixels = 13.0f;
41 float style_scale = 1.0f;
48 ImGuiLayer(
Window& window,
Graphics& graphics, std::filesystem::path settings_path);
51 virtual void OnAttach()
override;
52 virtual void OnDetach()
override;
55 bool BeginUiFrame()
override;
56 void CancelUiFrame()
override;
61 ImTextureID GetRenderTargetTexture(std::string_view name);
63 void BlockEvents(
bool block);
67 void SetSettingsPath(std::filesystem::path settings_path);
69 void LoadSettingsFromDisk(
const std::filesystem::path& settings_path);
71 void SaveSettingsToDisk(
const std::filesystem::path& settings_path);
73 uint32_t GetActiveWidgetID()
const;
74 ImFont* GetMonospaceFont()
const noexcept;
80 std::unique_ptr<Impl> impl_;
Definition render_frame_context.h:15
Definition imgui_texture_integration_access_internal.h:10