Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
harmony_banner_gui.cpp File Reference
#include "harmony_banner_gui.h"
#include "harmony_banner.h"
#include <imgui.h>
#include <implot.h>
#include <filesystem>
Include dependency graph for harmony_banner_gui.cpp:

Functions

ImFont * harmonyInitUiFont (ImGuiIO &io, const float sizePixels)
 Load the primary UI font and replace ImGui's default.
 
void harmonyApplyUiStyleScale (const float scale)
 Enlarge paddings, buttons, and scroll bars for readability.
 
ImFont * harmonyConfigureLauncherUi (ImGuiIO &io, ImFont **bannerFontOut)
 Configure fonts and style for the HarmonyUI launcher window.
 
ImFont * harmonyConfigurePlotUi (ImGuiIO &io)
 Configure fonts and style for the Harmony Visualization window.
 
void harmonyApplyPlotStyle ()
 Enlarge ImPlot tick labels, legends, markers, and line weight.
 
ImFont * harmonyInitBannerFont (ImGuiIO &io, const float sizePixels)
 Load a monospace font for the ASCII banner in the current ImGui context.
 
void harmonyDrawBannerImGui (ImFont *bannerFont, const bool compact)
 Draw the embedded banner inside the active ImGui window.
 

Function Documentation

◆ harmonyApplyPlotStyle()

void harmonyApplyPlotStyle ( )

Enlarge ImPlot tick labels, legends, markers, and line weight.

Referenced by harmonyConfigurePlotUi().

◆ harmonyApplyUiStyleScale()

void harmonyApplyUiStyleScale ( const float  scale)

Enlarge paddings, buttons, and scroll bars for readability.

Referenced by harmonyConfigureLauncherUi(), and harmonyConfigurePlotUi().

◆ harmonyConfigureLauncherUi()

ImFont * harmonyConfigureLauncherUi ( ImGuiIO &  io,
ImFont **  bannerFontOut 
)

◆ harmonyConfigurePlotUi()

ImFont * harmonyConfigurePlotUi ( ImGuiIO &  io)

Configure fonts and style for the Harmony Visualization window.

References harmonyApplyPlotStyle(), harmonyApplyUiStyleScale(), harmonyInitUiFont(), kHarmonyPlotUiFontSizePx, and kHarmonyPlotUiStyleScale.

Referenced by init_gui(), and runHarmonyLauncher().

◆ harmonyDrawBannerImGui()

void harmonyDrawBannerImGui ( ImFont *  bannerFont,
const bool  compact 
)

Draw the embedded banner inside the active ImGui window.

References harmonyAsciiBanner().

◆ harmonyInitBannerFont()

ImFont * harmonyInitBannerFont ( ImGuiIO &  io,
const float  sizePixels 
)

Load a monospace font for the ASCII banner in the current ImGui context.

Referenced by harmonyConfigureLauncherUi(), and runHarmonyLauncher().

◆ harmonyInitUiFont()

ImFont * harmonyInitUiFont ( ImGuiIO &  io,
const float  sizePixels 
)

Load the primary UI font and replace ImGui's default.

Referenced by harmonyConfigureLauncherUi(), and harmonyConfigurePlotUi().