## MetaKeybinding MetaKeybinding — Key bindings |

## Synopsis

                        MetaKeyBinding;
    #define             META_TYPE_KEY_BINDING
    const char *        meta_key_binding_get_name           (MetaKeyBinding *binding);
    MetaVirtualModifier meta_key_binding_get_modifiers      (MetaKeyBinding *binding);
    guint               meta_key_binding_get_mask           (MetaKeyBinding *binding);
    gboolean            meta_key_binding_is_builtin         (MetaKeyBinding *binding);
    gboolean            meta_keybindings_set_custom_handler (const gchar *name,
                                                             MetaKeyHandlerFunc handler,
                                                             gpointer user_data,
                                                             GDestroyNotify free_data);
    void                meta_keybindings_switch_window      (MetaDisplay *display,
                                                             MetaScreen *screen,
                                                             MetaWindow *event_window,
                                                             XIDeviceEvent *event,
                                                             MetaKeyBinding *binding);
    void                meta_screen_ungrab_all_keys         (MetaScreen *screen,
                                                             guint32 timestamp);
    gboolean            meta_screen_grab_all_keys           (MetaScreen *screen,
                                                             guint32 timestamp);

## Object Hierarchy

      GBoxed
       +----MetaKeyBinding

## Description

## Details

### MetaKeyBinding

    typedef struct _MetaKeyBinding MetaKeyBinding;

### META_TYPE_KEY_BINDING

    #define META_TYPE_KEY_BINDING               (meta_key_binding_get_type ())

### meta_key_binding_get_name ()

    const char *        meta_key_binding_get_name           (MetaKeyBinding *binding);

### meta_key_binding_get_modifiers ()

    MetaVirtualModifier meta_key_binding_get_modifiers      (MetaKeyBinding *binding);

### meta_key_binding_get_mask ()

    guint               meta_key_binding_get_mask           (MetaKeyBinding *binding);

### meta_key_binding_is_builtin ()

    gboolean            meta_key_binding_is_builtin         (MetaKeyBinding *binding);

### meta_keybindings_set_custom_handler ()

    gboolean            meta_keybindings_set_custom_handler (const gchar *name,
                                                             MetaKeyHandlerFunc handler,
                                                             gpointer user_data,
                                                             GDestroyNotify free_data);

Allows users to register a custom handler for a builtin key binding.

`name` : | The name of the keybinding to set
`handler` : | The new handler function. [allow-none]
`user_data` : | User data to pass to the callback
`free_data` : | Will be called when this handler is overridden.
Returns : | `TRUE` if the binding known as `name` was found, `FALSE` otherwise.

### meta_keybindings_switch_window ()

    void                meta_keybindings_switch_window      (MetaDisplay *display,
                                                             MetaScreen *screen,
                                                             MetaWindow *event_window,
                                                             XIDeviceEvent *event,
                                                             MetaKeyBinding *binding);

`display` : | a MetaDisplay
`screen` : | a MetaScreen
`event_window` : | a MetaWindow
`event` : | a XIDeviceEvent
`binding` : | a MetaKeyBinding

### meta_screen_ungrab_all_keys ()

    void                meta_screen_ungrab_all_keys         (MetaScreen *screen,
                                                             guint32 timestamp);

### meta_screen_grab_all_keys ()

    gboolean            meta_screen_grab_all_keys           (MetaScreen *screen,
                                                             guint32 timestamp);