add_key_event_listener


Description:

[ CCode ( cname = "atk_add_key_event_listener" ) ]
public static uint add_key_event_listener (KeySnoopFunc listener)

Adds the specified function to the list of functions to be called when a key event occurs.

The data element will be passed to the KeySnoopFunc (listener ) as the func_data param, on notification.

Parameters:

listener

the listener to notify

data

a pointer that points to a block of data that should be sent to the registered listeners, along with the event notification, when it occurs.

Returns:

added event listener id, or 0 on failure.




2022 vala-language.org