accelerator_parse_with_keycode


Description:


public bool accelerator_parse_with_keycode (string accelerator, Display? display, out uint accelerator_key, out uint[] accelerator_codes, out ModifierType accelerator_mods)

Parses a string representing an accelerator.

This is similar to [func@Gtk.accelerator_parse] but handles keycodes as well. This is only useful for system-level components, applications should use [func@Gtk.accelerator_parse] instead.

If accelerator_codes is given and the result stored in it is non-null, the result must be freed with g_free.

If a keycode is present in the accelerator and no accelerator_codes is given, the parse will fail.

If the parse fails, accelerator_key, accelerator_mods and accelerator_codes will be set to 0 (zero).

Parameters:

accelerator

string representing an accelerator

display

the `GdkDisplay` to look up accelerator_codes in

accelerator_key

return location for accelerator keyval

accelerator_codes

return location for accelerator keycodes

accelerator_mods

return location for accelerator modifier mask

Returns:

true if parsing succeeded


Namespace: Gtk
Package: gtk4