HikoGUI
A low latency retained GUI
|
Public Member Functions | |
theme (theme const &) noexcept=default | |
theme (theme &&) noexcept=default | |
theme & | operator= (theme const &) noexcept=default |
theme & | operator= (theme &&) noexcept=default |
theme (std::filesystem::path const &path) | |
Open and parse a theme file. | |
template<typename T = hi::margins> | |
constexpr T | margin () const noexcept |
Distance between widgets and between widgets and the border of the container. | |
constexpr float | border_width () const noexcept |
The line-width of a border. | |
template<typename T = hi::corner_radii> | |
constexpr T | rounding_radius () const noexcept |
The rounding radius of boxes with rounded corners. | |
constexpr float | size () const noexcept |
The size of small square widgets. | |
constexpr float | large_size () const noexcept |
The size of large widgets. | |
constexpr float | icon_size () const noexcept |
Size of icons inside a widget. | |
constexpr float | large_icon_size () const noexcept |
Size of icons representing the length of am average word of a label's text. | |
constexpr float | label_icon_size () const noexcept |
Size of icons being inline with a label's text. | |
constexpr float | baseline_adjustment () const noexcept |
The amount the base-line needs to be moved downwards when a label is aligned to top. | |
theme | transform (hi::pixel_density new_pixel_density) const noexcept |
Create a transformed copy of the theme. | |
hi::color | color (hi::semantic_color original_color, ssize_t nesting_level=0) const noexcept |
hi::color | color (hi::color original_color, ssize_t nesting_level=0) const noexcept |
hi::text_style | text_style (semantic_text_style theme_color) const noexcept |
hi::text_style | text_style (hi::text_style original_style) const noexcept |
Data Fields | |
hi::pixel_density | pixel_density = hi::pixel_density{pixels_per_inch(72.0f), device_type::desktop} |
The PPI of the size values. | |
std::string | name |
theme_mode | mode = theme_mode::light |
Friends | |
std::string | to_string (theme const &rhs) noexcept |
std::ostream & | operator<< (std::ostream &lhs, theme const &rhs) |
|
inline |
Open and parse a theme file.
|
inlineconstexprnoexcept |
The amount the base-line needs to be moved downwards when a label is aligned to top.
|
inlineconstexprnoexcept |
The line-width of a border.
|
inlineconstexprnoexcept |
Size of icons inside a widget.
|
inlineconstexprnoexcept |
Size of icons being inline with a label's text.
|
inlineconstexprnoexcept |
Size of icons representing the length of am average word of a label's text.
|
inlineconstexprnoexcept |
The size of large widgets.
Such as the minimum scroll bar size.
|
inlineconstexprnoexcept |
Distance between widgets and between widgets and the border of the container.
|
inlineconstexprnoexcept |
The rounding radius of boxes with rounded corners.
|
inlineconstexprnoexcept |
The size of small square widgets.
|
inlinenoexcept |
Create a transformed copy of the theme.
This function is used by the window, to make a specific version of the theme scaled to the PPI of the window.
It can also create a different version when the window becomes active/inactive mostly this will desaturate the colors in the theme.
new_ppi | The PPI of the window. |
hi::pixel_density v1::theme::pixel_density = hi::pixel_density{pixels_per_inch(72.0f), device_type::desktop} |
The PPI of the size values.