8#include "font_glyph_ids.hpp"
9#include "font_book.hpp"
13inline font_id ttauri_icons_font_id() noexcept
15 static font_id tmp = font_book::global().register_font(URL(
"resource:ttauri_icons.ttf"));
19enum class ttauri_icon :
char32_t {
20 MinimizeWindow = 0xf301,
21 MaximizeWindowMS = 0xf302,
22 RestoreWindowMS = 0xf303,
24 RestoreWindowMacOS = 0xf305,
25 MaximizeWindowMacOS = 0xf306,
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,
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,
56 surround_wide_6_0 = 0xf3da,
57 surround_wide_6_1 = 0xf3db,
58 surround_wide_7_0 = 0xf3dc,
59 surround_wide_7_1 = 0xf3dd,
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,
72 surround_atmos_5_1_4 = 0xf3e8,
73 surround_atmos_7_1_4 = 0xf3e9,
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)});