HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
hi::v1::detail::theme_book Class Reference

#include <hikogui/theme/theme_book.hpp>

Public Member Functions

 theme_book (theme_book const &)=delete
 
 theme_book (theme_book &&)=delete
 
theme_bookoperator= (theme_book const &)=delete
 
theme_bookoperator= (theme_book &&)=delete
 
void register_theme_directory (std::filesystem::path const &path) noexcept
 
void refresh ()
 Refresh the list of themes from the theme directories.
 
std::vector< std::stringnames () const noexcept
 Get a list of theme names.
 
std::optional< std::filesystem::path > find (std::string name, theme_mode mode) const noexcept
 Find a theme matching the name and mode.
 

Static Public Member Functions

static theme_bookglobal () noexcept
 

Detailed Description

theme_book keeps track of multiple themes.

Member Function Documentation

◆ find()

std::optional< std::filesystem::path > hi::v1::detail::theme_book::find ( std::string name,
theme_mode mode ) const
inlinenoexcept

Find a theme matching the name and mode.

Parameters
nameThe name of the theme to select.
modeThe mode of the theme to select.
Returns
A theme most closely matching the requested theme.

◆ names()

std::vector< std::string > hi::v1::detail::theme_book::names ( ) const
inlinenoexcept

Get a list of theme names.

This list of names is sorted and does not contain duplicates, ready to be displayed to the user.

◆ refresh()

void hi::v1::detail::theme_book::refresh ( )
inline

Refresh the list of themes from the theme directories.


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