HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
ttauri_icon.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 "font_id.hpp"
8#include "font_glyph_ids.hpp"
9#include "font_book.hpp"
10
11namespace tt {
12
13inline font_id ttauri_icons_font_id() noexcept
14{
15 static font_id tmp = font_book::global().register_font(URL("resource:ttauri_icons.ttf"));
16 return tmp;
17}
18
19enum class ttauri_icon : char32_t {
20 MinimizeWindow = 0xf301,
21 MaximizeWindowMS = 0xf302,
22 RestoreWindowMS = 0xf303,
23 CloseWindow = 0xf304,
24 RestoreWindowMacOS = 0xf305,
25 MaximizeWindowMacOS = 0xf306,
26
27 // Standard surround configurations
28 mono_1_0 = 0xf3c0,
29 mono_1_1 = 0xf3c1,
30 stereo_2_0 = 0xf3c2,
31 stereo_2_1 = 0xf3c3,
32 surround_3_0 = 0xf3c4,
33 surround_3_1 = 0xf3c5,
34 surround_4_0 = 0xf3c6,
35 surround_4_1 = 0xf3c7,
36 surround_5_0 = 0xf3c8,
37 surround_5_1 = 0xf3c9,
38 surround_7_0 = 0xf3ca,
39 surround_7_1 = 0xf3cb,
40 surround_9_0 = 0xf3cc,
41 surround_9_1 = 0xf3cd,
42 surround_11_0 = 0xf3ce,
43 surround_11_1 = 0xf3cf,
44
45 // Surround sound with side speakers instead of left/right back speakers.
46 surround_side_5_0 = 0xf3d0,
47 surround_side_5_1 = 0xf3d1,
48 surround_side_6_0 = 0xf3d2,
49 surround_side_6_1 = 0xf3d3,
50 surround_side_7_0 = 0xf3d4,
51 surround_side_7_1 = 0xf3d5,
52
53 // Surround sound with extra front speakers.
54 stereo_3_0 = 0xf3c8,
55 stereo_3_1 = 0xf3c9,
56 surround_wide_6_0 = 0xf3da,
57 surround_wide_6_1 = 0xf3db,
58 surround_wide_7_0 = 0xf3dc,
59 surround_wide_7_1 = 0xf3dd,
60
61 // Music configuration
62 quad_4_0 = 0xf3e0,
63 quad_4_1 = 0xf3e1,
64 quad_side_4_0 = 0xf3e2,
65 quad_side_4_1 = 0xf3e3,
66 hexagonal_6_0 = 0xf3e4,
67 hexagonal_6_1 = 0xf3e5,
68 octagonal_8_0 = 0xf3e6,
69 octagonal_8_1 = 0xf3e7,
70
71 // Surround sound with extra top speakers.
72 surround_atmos_5_1_4 = 0xf3e8,
73 surround_atmos_7_1_4 = 0xf3e9,
74
75};
76
77inline font_glyph_ids to_font_glyph_ids(ttauri_icon rhs) noexcept {
78 return font_book::global().find_glyph(ttauri_icons_font_id(), grapheme{static_cast<char32_t>(rhs)});
79}
80
81
82
83}