QtAwesome/tools/QtAwesomeStringGenerated.h.erb
2022-12-27 16:56:21 +01:00

27 lines
1.0 KiB
Plaintext

static const fa::QtAwesomeNamedIcon faCommonIconArray[] = {
<% icons_common.each_with_index do |(name, _unicode), index| -%>
{ <%= string_name(name) %>, <%= namespaced_id_name(name) %> } <%= index < icons_common.length - 1 ? ',' : '' %>
<% end %>
};
static const fa::QtAwesomeNamedIcon faBrandsIconArray[] = {
<% icons_brands.each_with_index do |(name, _unicode), index| -%>
{ <%= string_name(name) %>, <%= namespaced_id_name(name) %> } <%= index < icons_brands.length - 1 ? ',' : '' %>
<% end %>
};
#ifdef FONT_AWESOME_PRO
static const fa::QtAwesomeNamedIcon faProIconArray[] = {
<% icons_pro.each_with_index do |(name, _unicode), index| -%>
{ <%= string_name(name) %>, <%= namespaced_id_name(name) %> } <%= index < icons_pro.length - 1 ? ',' : '' %>
<% end %>
};
#else
static const fa::QtAwesomeNamedIcon faRegularFreeIconArray[] = {
<% icons_regular_free.each_with_index do |(name, _unicode), index| -%>
{ <%= string_name(name) %>, <%= namespaced_id_name(name) %> } <%= index < icons_pro.length - 1 ? ',' : '' %>
<% end %>
};
#endif