HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
ElusiveIcons.hpp
1// Copyright 2020 Pokitec
2// All rights reserved.
3
4#pragma once
5
6#include "TTauri/Text/FontID.hpp"
7#include "TTauri/Text/FontGlyphIDs.hpp"
8#include "TTauri/Text/FontBook.hpp"
9
10namespace tt {
11
12inline FontID ElusiveIcons_font_id = FontID{};
13
14enum class ElusiveIcon : char32_t {
15 AddressBook = 0xf102,
16 AddressBookAlt = 0xf101,
17 Adjust = 0xf104,
18 AdjustAlt = 0xf103,
19 Adult = 0xf105,
20 AlignCenter = 0xf106,
21 AlignJustify = 0xf107,
22 AlignLeft = 0xf108,
23 AlignRight = 0xf109,
24 ArrowDown = 0xf10a,
25 ArrowLeft = 0xf10b,
26 ArrowRight = 0xf10c,
27 ArrowUp = 0xf10d,
28 Asl = 0xf10e,
29 Asterisk = 0xf10f,
30 Backward = 0xf110,
31 BanCircle = 0xf111,
32 Barcode = 0xf112,
33 Behance = 0xf113,
34 Bell = 0xf114,
35 Blind = 0xf115,
36 Blogger = 0xf116,
37 Bold = 0xf117,
38 Book = 0xf118,
39 Bookmark = 0xf11a,
40 BookmarkEmpty = 0xf119,
41 Braille = 0xf11b,
42 Briefcase = 0xf11c,
43 Broom = 0xf11d,
44 Brush = 0xf11e,
45 Bulb = 0xf11f,
46 Bullhorn = 0xf120,
47 Calendar = 0xf122,
48 CalendarSign = 0xf121,
49 Camera = 0xf123,
50 Car = 0xf124,
51 CaretDown = 0xf125,
52 CaretLeft = 0xf126,
53 CaretRight = 0xf127,
54 CaretUp = 0xf128,
55 Cc = 0xf129,
56 Certificate = 0xf12a,
57 Check = 0xf12c,
58 CheckEmpty = 0xf12b,
59 ChevronDown = 0xf12d,
60 ChevronLeft = 0xf12e,
61 ChevronRight = 0xf12f,
62 ChevronUp = 0xf130,
63 Child = 0xf131,
64 CircleArrowDown = 0xf132,
65 CircleArrowLeft = 0xf133,
66 CircleArrowRight = 0xf134,
67 CircleArrowUp = 0xf135,
68 Cloud = 0xf137,
69 CloudAlt = 0xf136,
70 Cog = 0xf139,
71 CogAlt = 0xf138,
72 Cogs = 0xf13a,
73 Comment = 0xf13c,
74 CommentAlt = 0xf13b,
75 Compass = 0xf13e,
76 CompassAlt = 0xf13d,
77 CreditCard = 0xf13f,
78 Css = 0xf140,
79 Dashboard = 0xf141,
80 Delicious = 0xf142,
81 Deviantart = 0xf143,
82 Digg = 0xf144,
83 Download = 0xf146,
84 DownloadAlt = 0xf145,
85 Dribbble = 0xf147,
86 Edit = 0xf148,
87 Eject = 0xf149,
88 Envelope = 0xf14b,
89 EnvelopeAlt = 0xf14a,
90 Error = 0xf14d,
91 ErrorAlt = 0xf14c,
92 Eur = 0xf14e,
93 ExclamationSign = 0xf14f,
94 EyeClose = 0xf150,
95 EyeOpen = 0xf151,
96 Facebook = 0xf152,
97 FacetimeVideo = 0xf153,
98 FastBackward = 0xf154,
99 FastForward = 0xf155,
100 Female = 0xf156,
101 File = 0xf15c,
102 FileAlt = 0xf157,
103 FileEdit = 0xf159,
104 FileEditAlt = 0xf158,
105 FileNew = 0xf15b,
106 FileNewAlt = 0xf15a,
107 Film = 0xf15d,
108 Filter = 0xf15e,
109 Fire = 0xf15f,
110 Flag = 0xf161,
111 FlagAlt = 0xf160,
112 Flickr = 0xf162,
113 Folder = 0xf166,
114 FolderClose = 0xf163,
115 FolderOpen = 0xf164,
116 FolderSign = 0xf165,
117 Font = 0xf167,
118 Fontsize = 0xf168,
119 Fork = 0xf169,
120 Forward = 0xf16b,
121 ForwardAlt = 0xf16a,
122 Foursquare = 0xf16c,
123 Friendfeed = 0xf16e,
124 FriendfeedRect = 0xf16d,
125 Fullscreen = 0xf16f,
126 Gbp = 0xf170,
127 Gift = 0xf171,
128 Github = 0xf173,
129 GithubText = 0xf172,
130 Glass = 0xf174,
131 Glasses = 0xf175,
132 Globe = 0xf177,
133 GlobeAlt = 0xf176,
134 Googleplus = 0xf178,
135 Graph = 0xf17a,
136 GraphAlt = 0xf179,
137 Group = 0xf17c,
138 GroupAlt = 0xf17b,
139 Guidedog = 0xf17d,
140 HandDown = 0xf17e,
141 HandLeft = 0xf17f,
142 HandRight = 0xf180,
143 HandUp = 0xf181,
144 Hdd = 0xf182,
145 Headphones = 0xf183,
146 HearingImpaired = 0xf184,
147 Heart = 0xf187,
148 HeartAlt = 0xf185,
149 HeartEmpty = 0xf186,
150 Home = 0xf189,
151 HomeAlt = 0xf188,
152 Hourglass = 0xf18a,
153 Idea = 0xf18c,
154 IdeaAlt = 0xf18b,
155 Inbox = 0xf18f,
156 InboxAlt = 0xf18d,
157 InboxBox = 0xf18e,
158 IndentLeft = 0xf190,
159 IndentRight = 0xf191,
160 InfoCircle = 0xf192,
161 Instagram = 0xf193,
162 IphoneHome = 0xf194,
163 Italic = 0xf195,
164 Key = 0xf196,
165 Laptop = 0xf198,
166 LaptopAlt = 0xf197,
167 Lastfm = 0xf199,
168 Leaf = 0xf19a,
169 Lines = 0xf19b,
170 Link = 0xf19c,
171 Linkedin = 0xf19d,
172 List = 0xf19f,
173 ListAlt = 0xf19e,
174 Livejournal = 0xf1a0,
175 Lock = 0xf1a2,
176 LockAlt = 0xf1a1,
177 Magic = 0xf1a3,
178 Magnet = 0xf1a4,
179 Male = 0xf1a5,
180 MapMarker = 0xf1a7,
181 MapMarkerAlt = 0xf1a6,
182 Mic = 0xf1a9,
183 MicAlt = 0xf1a8,
184 Minus = 0xf1ab,
185 MinusSign = 0xf1aa,
186 Move = 0xf1ac,
187 Music = 0xf1ad,
188 Myspace = 0xf1ae,
189 Network = 0xf1af,
190 Off = 0xf1b0,
191 Ok = 0xf1b3,
192 OkCircle = 0xf1b1,
193 OkSign = 0xf1b2,
194 Opensource = 0xf1b4,
195 PaperClip = 0xf1b6,
196 PaperClipAlt = 0xf1b5,
197 Path = 0xf1b7,
198 Pause = 0xf1b9,
199 PauseAlt = 0xf1b8,
200 Pencil = 0xf1bb,
201 PencilAlt = 0xf1ba,
202 Person = 0xf1bc,
203 Phone = 0xf1be,
204 PhoneAlt = 0xf1bd,
205 Photo = 0xf1c0,
206 PhotoAlt = 0xf1bf,
207 Picasa = 0xf1c1,
208 Picture = 0xf1c2,
209 Pinterest = 0xf1c3,
210 Plane = 0xf1c4,
211 Play = 0xf1c7,
212 PlayAlt = 0xf1c5,
213 PlayCircle = 0xf1c6,
214 Plurk = 0xf1c9,
215 PlurkAlt = 0xf1c8,
216 Plus = 0xf1cb,
217 PlusSign = 0xf1ca,
218 Podcast = 0xf1cc,
219 Print = 0xf1cd,
220 Puzzle = 0xf1ce,
221 Qrcode = 0xf1cf,
222 Question = 0xf1d1,
223 QuestionSign = 0xf1d0,
224 QuoteAlt = 0xf1d2,
225 QuoteRight = 0xf1d4,
226 QuoteRightAlt = 0xf1d3,
227 Quotes = 0xf1d5,
228 Random = 0xf1d6,
229 Record = 0xf1d7,
230 Reddit = 0xf1d8,
231 Redux = 0xf1d9,
232 Refresh = 0xf1da,
233 Remove = 0xf1dd,
234 RemoveCircle = 0xf1db,
235 RemoveSign = 0xf1dc,
236 Repeat = 0xf1df,
237 RepeatAlt = 0xf1de,
238 ResizeFull = 0xf1e0,
239 ResizeHorizontal = 0xf1e1,
240 ResizeSmall = 0xf1e2,
241 ResizeVertical = 0xf1e3,
242 ReturnKey = 0xf1e4,
243 Retweet = 0xf1e5,
244 ReverseAlt = 0xf1e6,
245 Road = 0xf1e7,
246 Rss = 0xf1e8,
247 Scissors = 0xf1e9,
248 Screen = 0xf1eb,
249 ScreenAlt = 0xf1ea,
250 Screenshot = 0xf1ec,
251 Search = 0xf1ee,
252 SearchAlt = 0xf1ed,
253 Share = 0xf1f0,
254 ShareAlt = 0xf1ef,
255 ShoppingCart = 0xf1f2,
256 ShoppingCartSign = 0xf1f1,
257 Signal = 0xf1f3,
258 Skype = 0xf1f4,
259 Slideshare = 0xf1f5,
260 Smiley = 0xf1f7,
261 SmileyAlt = 0xf1f6,
262 Soundcloud = 0xf1f8,
263 Speaker = 0xf1f9,
264 Spotify = 0xf1fa,
265 Stackoverflow = 0xf1fb,
266 Star = 0xf1fe,
267 StarAlt = 0xf1fc,
268 StarEmpty = 0xf1fd,
269 StepBackward = 0xf1ff,
270 StepForward = 0xf200,
271 Stop = 0xf202,
272 StopAlt = 0xf201,
273 Stumbleupon = 0xf203,
274 Tag = 0xf204,
275 Tags = 0xf205,
276 Tasks = 0xf206,
277 TextHeight = 0xf207,
278 TextWidth = 0xf208,
279 Th = 0xf20b,
280 ThLarge = 0xf209,
281 ThList = 0xf20a,
282 ThumbsDown = 0xf20c,
283 ThumbsUp = 0xf20d,
284 Time = 0xf20f,
285 TimeAlt = 0xf20e,
286 Tint = 0xf210,
287 Torso = 0xf211,
288 Trash = 0xf213,
289 TrashAlt = 0xf212,
290 Tumblr = 0xf214,
291 Twitter = 0xf215,
292 UniversalAccess = 0xf216,
293 Unlock = 0xf218,
294 UnlockAlt = 0xf217,
295 Upload = 0xf219,
296 Usd = 0xf21a,
297 User = 0xf21b,
298 Viadeo = 0xf21c,
299 Video = 0xf21f,
300 VideoAlt = 0xf21d,
301 VideoChat = 0xf21e,
302 ViewMode = 0xf220,
303 Vimeo = 0xf221,
304 Vkontakte = 0xf222,
305 VolumeDown = 0xf223,
306 VolumeOff = 0xf224,
307 VolumeUp = 0xf225,
308 W3c = 0xf226,
309 WarningSign = 0xf227,
310 Website = 0xf229,
311 WebsiteAlt = 0xf228,
312 Wheelchair = 0xf22a,
313 Wordpress = 0xf22b,
314 Wrench = 0xf22d,
315 WrenchAlt = 0xf22c,
316 Youtube = 0xf22e,
317 ZoomIn = 0xf22f,
318 ZoomOut = 0xf230,
319};
320
321inline FontGlyphIDs to_FontGlyphIDs(ElusiveIcon rhs) noexcept {
322 tt_assume(ElusiveIcons_font_id);
323 tt_assume(fontBook);
324
325 return fontBook->find_glyph(ElusiveIcons_font_id, Grapheme{static_cast<char32_t>(rhs)});
326}
327
328
329
330}
FontGlyphIDs find_glyph(FontID font_id, Grapheme grapheme) const noexcept
Find a glyph using the given code-point.