PhoshKeyboardEvents

PhoshKeyboardEvents — Grabs and manages special keyboard events

Functions

Signals

void accelerator-activated Run Last
void accelerator-grabbed Run Last

Types and Values

Object Hierarchy

    GObject
    ╰── PhoshKeyboardEvents

Implemented Interfaces

PhoshKeyboardEvents implements GInitable.

Description

Functions

phosh_keyboard_events_new ()

PhoshKeyboardEvents *
phosh_keyboard_events_new (void);

phosh_keyboard_events_register_keys ()

void
phosh_keyboard_events_register_keys (PhoshKeyboardEvents *self,
                                     char **keys,
                                     size_t len);

Types and Values

PHOSH_TYPE_KEYBOARD_EVENTS

#define PHOSH_TYPE_KEYBOARD_EVENTS (phosh_keyboard_events_get_type ())

PhoshKeyboardEvents

typedef struct _PhoshKeyboardEvents PhoshKeyboardEvents;

Signal Details

The “accelerator-activated” signal

void
user_function (PhoshKeyboardEvents *phoshkeyboardevents,
               guint                arg1,
               guint                arg2,
               gpointer             user_data)

Flags: Run Last


The “accelerator-grabbed” signal

void
user_function (PhoshKeyboardEvents *kbevent,
               gchar               *accelerator,
               guint                action_id,
               gpointer             user_data)

Emitted whenever an accelerator subscription has been successfull

Parameters

kbevent

The PhoshKeyboardEvents emitting the signal.

 

accelerator

The accelerator which has been grabbed

 

action_id

The assigned id of the accelerator

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last