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
4
namespace
yaze
{
5
namespace
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.
11
struct
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.
20
extern
const
CommonIcon
kCommonIcons
[];
21
extern
const
int
kCommonIconCount
;
22
23
}
// namespace gui
24
}
// namespace yaze
25
26
#endif
// YAZE_APP_GUI_CORE_COMMON_ICONS_H_
yaze::gui::kCommonIconCount
const int kCommonIconCount
Definition
icons.cc:138
yaze::gui::kCommonIcons
const CommonIcon kCommonIcons[]
Definition
icons.cc:7
yaze
Definition
patch_export_usage.cc:8
yaze::gui::CommonIcon
Definition
common_icons.h:11
yaze::gui::CommonIcon::glyph
const char * glyph
Definition
common_icons.h:13
yaze::gui::CommonIcon::search_key
const char * search_key
Definition
common_icons.h:15
yaze::gui::CommonIcon::category
const char * category
Definition
common_icons.h:14
yaze::gui::CommonIcon::macro_name
const char * macro_name
Definition
common_icons.h:12
src
app
gui
core
common_icons.h
Generated by
1.10.0