HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
GUI
theme_book.hpp
1
// Copyright Take Vos 2020.
2
// Distributed under the Boost Software License, Version 1.0.
3
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5
#pragma once
6
7
#include "theme_mode.hpp"
8
#include "theme.hpp"
9
#include <limits>
10
#include <vector>
11
#include <new>
12
13
namespace
tt {
14
class
font_book;
15
19
class
theme_book
{
20
public
:
21
~theme_book
();
22
theme_book
(
theme_book
const
&) =
delete
;
23
theme_book
(
theme_book
&&) =
delete
;
24
theme_book
&operator=(
theme_book
const
&) =
delete
;
25
theme_book
&operator=(
theme_book
&&) =
delete
;
26
27
theme_book
(
tt::font_book
const
&
font_book
,
std::vector<URL>
const
&theme_directories)
noexcept
;
28
29
[[nodiscard]]
std::vector<std::string>
theme_names()
const
noexcept
;
30
37
[[nodiscard]]
theme
const
&
find
(
std::string
name, theme_mode mode)
const
noexcept
;
38
39
private
:
40
std::vector<std::unique_ptr<theme>
> themes;
41
};
42
43
}
// namespace tt
tt::theme
Definition
theme.hpp:22
tt::theme_book
theme_book keeps track of multiple themes.
Definition
theme_book.hpp:19
tt::theme_book::find
theme const & find(std::string name, theme_mode mode) const noexcept
Find a theme matching the name and mode.
tt::font_book
font_book keeps track of multiple fonts.
Definition
font_book.hpp:30
std::string
std::vector
Generated on Mon Apr 22 2024 12:53:30 for HikoGUI by
1.10.0