QuasarEngine
Cross-platform 3D engine and editor
Toggle main menu visibility
Loading...
Searching...
No Matches
ImGuiTheme.h
Go to the documentation of this file.
1
#pragma once
2
7
8
#include <imgui.h>
9
10
#include <filesystem>
11
14
namespace
Quasar::ImGuiTheme
15
{
17
inline
constexpr
float
FontSize
= 16.0f;
18
26
void
ApplyStyle
(ImGuiStyle& style,
float
dpiScale);
27
31
std::filesystem::path
GetFontPath
();
32
40
bool
LoadFont
(ImFontAtlas& atlas,
const
std::filesystem::path& file);
41
}
Quasar::ImGuiTheme
The look of the ImGui interface.
Definition
ImGuiTheme.h:15
Quasar::ImGuiTheme::GetFontPath
std::filesystem::path GetFontPath()
Returns where the engine font is expected: resources/fonts/Inter/Inter-Regular.ttf,...
Quasar::ImGuiTheme::FontSize
constexpr float FontSize
Height of the text in pixels on a standard screen, before the DPI scale.
Definition
ImGuiTheme.h:17
Quasar::ImGuiTheme::ApplyStyle
void ApplyStyle(ImGuiStyle &style, float dpiScale)
Replaces the colors, spacing and rounding of a style with the engine theme.
Quasar::ImGuiTheme::LoadFont
bool LoadFont(ImFontAtlas &atlas, const std::filesystem::path &file)
Loads a font file as the default font of an atlas, at FontSize.
quasar
core
ImGuiTheme.h
Generated by
1.18.0