HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
hi::v1::theme_model_base Class Reference

#include <hikogui/theme/theme_model.hpp>

Inheritance diagram for hi::v1::theme_model_base:
hi::v1::theme_model< Tag >

Public Member Functions

 theme_model_base (std::string_view tag) noexcept
void clear () noexcept
theme_sub_modeloperator[] (theme_state state) noexcept
theme_sub_model const & operator[] (theme_state state) const noexcept
theme_sub_model const & get_model (theme_delegate auto const *delegate) const noexcept
std::pair< theme_sub_model const &, float > get_model_and_scale (theme_delegate auto const *delegate) const noexcept
hi::text_theme text_theme (theme_delegate auto const *delegate) const noexcept
 Get the text theme for this widget's model.
color background_color (theme_delegate auto const *delegate) const noexcept
color fill_color (theme_delegate auto const *delegate) const noexcept
color caret_primary_color (theme_delegate auto const *delegate) const noexcept
color caret_secondary_color (theme_delegate auto const *delegate) const noexcept
color caret_overwrite_color (theme_delegate auto const *delegate) const noexcept
color caret_compose_color (theme_delegate auto const *delegate) const noexcept
color selection_color (theme_delegate auto const *delegate) const noexcept
color border_color (theme_delegate auto const *delegate) const noexcept
float border_bottom_left_radius (theme_delegate auto const *delegate) const noexcept
float border_bottom_right_radius (theme_delegate auto const *delegate) const noexcept
float border_top_left_radius (theme_delegate auto const *delegate) const noexcept
float border_top_right_radius (theme_delegate auto const *delegate) const noexcept
corner_radii border_radius (theme_delegate auto const *delegate) const noexcept
float border_width (theme_delegate auto const *delegate) const noexcept
float width (theme_delegate auto const *delegate) const noexcept
float height (theme_delegate auto const *delegate) const noexcept
extent2 size (theme_delegate auto const *delegate) const noexcept
float margin_bottom (theme_delegate auto const *delegate) const noexcept
float margin_left (theme_delegate auto const *delegate) const noexcept
float margin_top (theme_delegate auto const *delegate) const noexcept
float margin_right (theme_delegate auto const *delegate) const noexcept
margins margin (theme_delegate auto const *delegate) const noexcept
float x_height (theme_delegate auto const *delegate) const noexcept
float cap_height (theme_delegate auto const *delegate) const noexcept
float line_height (theme_delegate auto const *delegate) const noexcept

Static Public Member Functions

static std::vector< std::stringmodel_keys () noexcept
static theme_model_base & model_by_key (std::string const &key)

Detailed Description

The theme models for all states for a specific widget component.

Member Function Documentation

◆ text_theme()

hi::text_theme hi::v1::theme_model_base::text_theme ( theme_delegate auto const * delegate) const
inlinenodiscardnoexcept

Get the text theme for this widget's model.

This function copies the text-theme of the model and scales the text-size. This should be moved into the text-shaper to reduce the amount of copies and allocations being done.


The documentation for this class was generated from the following file: