Macro re_ui::icons::icon_from_path

source ·
macro_rules! icon_from_path {
    ($path:literal) => { ... };
}
Expand description

Macro to create an Icon, using the file path as the id.

This avoids specifying the id manually, which is error-prone (duplicate IDs lead to silent display bugs).