Function gtk4::accelerator_get_label_with_keycode[][src]

pub fn accelerator_get_label_with_keycode<P: IsA<Display>>(
    display: Option<&P>,
    accelerator_key: u32,
    keycode: u32,
    accelerator_mods: ModifierType
) -> Option<GString>
Expand description

Converts an accelerator keyval and modifier mask into a string that can be displayed to the user.

The string may be translated.

This function is similar to accelerator_get_label(), but handling keycodes.

This is only useful for system-level components, applications should use accelerator_parse() instead.

display

a gdk::Display or None to use the default display

accelerator_key

accelerator keyval

keycode

accelerator keycode

accelerator_mods

accelerator modifier mask

Returns

a newly-allocated string representing the accelerator.