Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
harmony_banner_gui.h
Go to the documentation of this file.
1#pragma once
2
3struct ImFont;
4struct ImGuiIO;
5
7constexpr float kHarmonyUiFontSizePx = 20.0f;
8
10constexpr float kHarmonyLauncherBannerFontSizePx = 10.0f;
11
13constexpr float kHarmonyUiStyleScale = 1.35f;
14
16constexpr float kHarmonyPlotUiFontSizePx = 24.0f;
17
19constexpr float kHarmonyPlotUiStyleScale = 1.45f;
20
22constexpr float kHarmonyPlotPanelHeightPx = 380.0f;
23
25constexpr float kHarmonyPlotEigenHeightPx = 640.0f;
26
28constexpr float kHarmonyPlotWaveformHeightPx = 300.0f;
29
31ImFont* harmonyInitUiFont(ImGuiIO& io, float sizePixels = kHarmonyUiFontSizePx);
32
35
38
40ImFont* harmonyConfigureLauncherUi(ImGuiIO& io, ImFont** bannerFontOut);
41
43ImFont* harmonyConfigurePlotUi(ImGuiIO& io);
44
46ImFont* harmonyInitBannerFont(ImGuiIO& io, float sizePixels = 10.0f);
47
49void harmonyDrawBannerImGui(ImFont* bannerFont, bool compact = false);
void harmonyApplyPlotStyle()
Enlarge ImPlot tick labels, legends, markers, and line weight.
Definition harmony_banner_gui.cpp:62
constexpr float kHarmonyUiStyleScale
ImGui widget scale factor for HarmonyUI.
Definition harmony_banner_gui.h:13
constexpr float kHarmonyPlotPanelHeightPx
Default height for standard ImPlot panels.
Definition harmony_banner_gui.h:22
constexpr float kHarmonyPlotEigenHeightPx
Height for eigenvalue s-plane plots.
Definition harmony_banner_gui.h:25
ImFont * harmonyInitBannerFont(ImGuiIO &io, float sizePixels=10.0f)
Load a monospace font for the ASCII banner in the current ImGui context.
Definition harmony_banner_gui.cpp:83
ImFont * harmonyConfigurePlotUi(ImGuiIO &io)
Configure fonts and style for the Harmony Visualization window.
Definition harmony_banner_gui.cpp:55
void harmonyDrawBannerImGui(ImFont *bannerFont, bool compact=false)
Draw the embedded banner inside the active ImGui window.
Definition harmony_banner_gui.cpp:97
constexpr float kHarmonyUiFontSizePx
Default UI font size (pixels) for HarmonyUI.
Definition harmony_banner_gui.h:7
ImFont * harmonyConfigureLauncherUi(ImGuiIO &io, ImFont **bannerFontOut)
Configure fonts and style for the HarmonyUI launcher window.
Definition harmony_banner_gui.cpp:44
ImFont * harmonyInitUiFont(ImGuiIO &io, float sizePixels=kHarmonyUiFontSizePx)
Load the primary UI font and replace ImGui's default.
Definition harmony_banner_gui.cpp:28
constexpr float kHarmonyPlotUiFontSizePx
UI font size (pixels) in the plot / visualization window.
Definition harmony_banner_gui.h:16
constexpr float kHarmonyPlotWaveformHeightPx
Height for abc / grouped waveform plots.
Definition harmony_banner_gui.h:28
void harmonyApplyUiStyleScale(float scale=kHarmonyUiStyleScale)
Enlarge paddings, buttons, and scroll bars for readability.
Definition harmony_banner_gui.cpp:33
constexpr float kHarmonyPlotUiStyleScale
ImGui widget scale in the plot window.
Definition harmony_banner_gui.h:19
constexpr float kHarmonyLauncherBannerFontSizePx
ASCII banner font size (pixels) in the launcher.
Definition harmony_banner_gui.h:10