Function gtk::accelerator_name_with_keycode
source · [−]pub fn accelerator_name_with_keycode(
display: Option<&Display>,
accelerator_key: u32,
keycode: u32,
accelerator_mods: ModifierType
) -> Option<GString>
Expand description
Converts an accelerator keyval and modifier mask
into a string parseable by accelerator_parse_with_keycode()
,
similarly to accelerator_name()
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 accelerator name.