hydrogen 1.2.6
WidgetWithScalableFont< nSmall, nNormal, nLarge > Class Template Reference

Widget is affected by the "Font size" settings in the PreferencesDialog. More...

#include <WidgetWithScalableFont.h>

Protected Member Functions

constexpr int getPointSize (H2Core::FontTheme::FontSize fontSize) const
 

Detailed Description

template<int nSmall, int nNormal, int nLarge>
class WidgetWithScalableFont< nSmall, nNormal, nLarge >

Widget is affected by the "Font size" settings in the PreferencesDialog.

To improve accessibility, three different font sizes, H2Core::FontTheme::FontSize::Small, H2Core::FontTheme::FontSize::Medium, and H2Core::FontTheme::FontSize::Large, are available.

Definition at line 39 of file WidgetWithScalableFont.h.

Member Function Documentation

◆ getPointSize()

template<int nSmall, int nNormal, int nLarge>
int getPointSize ( H2Core::FontTheme::FontSize fontSize) const
inlineconstexprprotected

Definition at line 41 of file WidgetWithScalableFont.h.