Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
harmony_banner_gui.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ImFont * harmonyInitUiFont (ImGuiIO &io, float sizePixels=kHarmonyUiFontSizePx)
 Load the primary UI font and replace ImGui's default.
 
void harmonyApplyUiStyleScale (float scale=kHarmonyUiStyleScale)
 Enlarge paddings, buttons, and scroll bars for readability.
 
void harmonyApplyPlotStyle ()
 Enlarge ImPlot tick labels, legends, markers, and line weight.
 
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.
 
ImFont * harmonyInitBannerFont (ImGuiIO &io, float sizePixels=10.0f)
 Load a monospace font for the ASCII banner in the current ImGui context.
 
void harmonyDrawBannerImGui (ImFont *bannerFont, bool compact=false)
 Draw the embedded banner inside the active ImGui window.
 

Variables

constexpr float kHarmonyUiFontSizePx = 20.0f
 Default UI font size (pixels) for HarmonyUI.
 
constexpr float kHarmonyLauncherBannerFontSizePx = 10.0f
 ASCII banner font size (pixels) in the launcher.
 
constexpr float kHarmonyUiStyleScale = 1.35f
 ImGui widget scale factor for HarmonyUI.
 
constexpr float kHarmonyPlotUiFontSizePx = 24.0f
 UI font size (pixels) in the plot / visualization window.
 
constexpr float kHarmonyPlotUiStyleScale = 1.45f
 ImGui widget scale in the plot window.
 
constexpr float kHarmonyPlotPanelHeightPx = 380.0f
 Default height for standard ImPlot panels.
 
constexpr float kHarmonyPlotEigenHeightPx = 640.0f
 Height for eigenvalue s-plane plots.
 
constexpr float kHarmonyPlotWaveformHeightPx = 300.0f
 Height for abc / grouped waveform plots.
 

Function Documentation

◆ harmonyApplyPlotStyle()

void harmonyApplyPlotStyle ( )

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

Referenced by harmonyConfigurePlotUi().

◆ harmonyApplyUiStyleScale()

void harmonyApplyUiStyleScale ( float  scale = kHarmonyUiStyleScale)

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,
bool  compact = false 
)

Draw the embedded banner inside the active ImGui window.

References harmonyAsciiBanner().

◆ harmonyInitBannerFont()

ImFont * harmonyInitBannerFont ( ImGuiIO &  io,
float  sizePixels = 10.0f 
)

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

Referenced by harmonyConfigureLauncherUi(), and runHarmonyLauncher().

◆ harmonyInitUiFont()

ImFont * harmonyInitUiFont ( ImGuiIO &  io,
float  sizePixels = kHarmonyUiFontSizePx 
)

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

Referenced by harmonyConfigureLauncherUi(), and harmonyConfigurePlotUi().

Variable Documentation

◆ kHarmonyLauncherBannerFontSizePx

constexpr float kHarmonyLauncherBannerFontSizePx = 10.0f
constexpr

ASCII banner font size (pixels) in the launcher.

Referenced by harmonyConfigureLauncherUi(), and runHarmonyLauncher().

◆ kHarmonyPlotEigenHeightPx

constexpr float kHarmonyPlotEigenHeightPx = 640.0f
constexpr

Height for eigenvalue s-plane plots.

Referenced by plot_eigenvalues_implot().

◆ kHarmonyPlotPanelHeightPx

constexpr float kHarmonyPlotPanelHeightPx = 380.0f
constexpr

Default height for standard ImPlot panels.

Referenced by bode_plot_implot().

◆ kHarmonyPlotUiFontSizePx

constexpr float kHarmonyPlotUiFontSizePx = 24.0f
constexpr

UI font size (pixels) in the plot / visualization window.

Referenced by harmonyConfigurePlotUi().

◆ kHarmonyPlotUiStyleScale

constexpr float kHarmonyPlotUiStyleScale = 1.45f
constexpr

ImGui widget scale in the plot window.

Referenced by harmonyConfigurePlotUi().

◆ kHarmonyPlotWaveformHeightPx

constexpr float kHarmonyPlotWaveformHeightPx = 300.0f
constexpr

Height for abc / grouped waveform plots.

Referenced by plot_abc_groups_implot().

◆ kHarmonyUiFontSizePx

constexpr float kHarmonyUiFontSizePx = 20.0f
constexpr

Default UI font size (pixels) for HarmonyUI.

Referenced by harmonyConfigureLauncherUi().

◆ kHarmonyUiStyleScale

constexpr float kHarmonyUiStyleScale = 1.35f
constexpr

ImGui widget scale factor for HarmonyUI.

Referenced by harmonyConfigureLauncherUi().