Function add_shortcut

Source
pub fn add_shortcut(
    identifier: impl AsRef<str>,
    texture_identifier: impl AsRef<str>,
    texture_hover_identifier: impl AsRef<str>,
    keybind_identifier: impl AsRef<str>,
    tooltip_text: impl AsRef<str>,
) -> Revertible<impl Fn() + Send + Sync + Clone + 'static>
👎Deprecated: use add_quick_access
Expand description

Adds a new shortcut icon to the quick access with the given texture identifiers. When clicked the given keybind identifier is triggered.

Returns a Revertible to remove the shortcut.