yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
common_icons.h
Go to the documentation of this file.
1#ifndef YAZE_APP_GUI_CORE_COMMON_ICONS_H_
2#define YAZE_APP_GUI_CORE_COMMON_ICONS_H_
3
4namespace yaze {
5namespace gui {
6
7// A curated Material Design icon from `icons.h`. The browser widget walks
8// this table instead of the full ~2,100-icon header so the grid stays
9// responsive and the set is easy to reason about. Extensions to the
10// catalog are welcome; full codegen over the header is a follow-up.
11struct CommonIcon {
12 const char* macro_name; // e.g. "ICON_MD_SAVE"
13 const char* glyph; // UTF-8 sequence (the ICON_MD_* literal)
14 const char* category; // "actions", "navigation", ...
15 const char* search_key; // space-separated keywords for fuzzy filtering
16};
17
18// Null-terminated (glyph == nullptr sentinel) for range-style iteration,
19// with kCommonIconCount available for index-style iteration.
20extern const CommonIcon kCommonIcons[];
21extern const int kCommonIconCount;
22
23} // namespace gui
24} // namespace yaze
25
26#endif // YAZE_APP_GUI_CORE_COMMON_ICONS_H_
const int kCommonIconCount
Definition icons.cc:138
const CommonIcon kCommonIcons[]
Definition icons.cc:7
const char * search_key
const char * category
const char * macro_name