Function gtk4::functions::accelerator_name[][src]

pub fn accelerator_name(
    accelerator_key: u32,
    accelerator_mods: ModifierType
) -> Option<GString>
Expand description

Converts an accelerator keyval and modifier mask into a string parseable by gtk_accelerator_parse().

For example, if you pass in GDK_KEY_q and gdk::ModifierType::CONTROL_MASK, this function returns <Control>q.

If you need to display accelerators in the user interface, see accelerator_get_label().

accelerator_key

accelerator keyval

accelerator_mods

accelerator modifier mask

Returns

a newly-allocated accelerator name