Callbacks¶
|
|
|
|
|
|
|
|
|
Details¶
- Atk.EventListener(obj)¶
- Parameters:
obj (
Atk.Object) – AnAtk.Objectinstance for whom the callback will be called when the specified event (e.g. ‘focus:’) takes place.
A function which is called when an object emits a matching event, as used in #atk_add_focus_tracker. Currently the only events for which object-specific handlers are supported are events of type “focus:”. Most clients of ATK will prefer to attach signal handlers for the various ATK signals instead.
see [id`atk_add_focus_tracker`]
- Atk.EventListenerInit()¶
An
Atk.EventListenerInitfunction is a special function that is called in order to initialize the per-object event registration system used byAtk.EventListener, if any preparation is required.see [id`atk_focus_tracker_init`]
- Atk.FocusHandler(object, focus_in)¶
- Parameters:
object (
Atk.Object) – theAtk.Objectthat receives/lose the focus
The type of callback function used for atk_component_add_focus_handler() and
Atk.Component.remove_focus_handler()Deprecated since version 2.9.4: Deprecated with atk_component_add_focus_handler() and
Atk.Component.remove_focus_handler(). See those methods for more information.
- Atk.Function(*user_data)¶
- Parameters:
user_data (
objectorNone) – custom data defined by the user- Returns:
not used
- Return type:
An
Atk.Functionis a function definition used for padding which has been added to class and interface structures to allow for expansion in the future.
- Atk.KeySnoopFunc(event, *user_data)¶
- Parameters:
event (
Atk.KeyEventStruct) – anAtk.KeyEventStructcontaining information about the key event for which notification is being given.user_data (
objectorNone) – a block of data which will be passed to the event listener, on notification.
- Returns:
True(nonzero) if the event emission should be stopped and the event discarded without being passed to the normal GUI recipient;False(zero) if the event dispatch to the client application should proceed as normal.see [id`atk_add_key_event_listener`]
- Return type:
An
Atk.KeySnoopFuncis a type of callback which is called whenever a key event occurs, if registered via atk_add_key_event_listener. It allows for pre-emptive interception of key events via the return code as described below.
- Atk.PropertyChangeHandler(obj, vals)¶
- Parameters:
obj (
Atk.Object) – atkobject which property changesvals (
Atk.PropertyValues) – values changed
An
Atk.PropertyChangeHandleris a function which is executed when anAtk.Object's property changes value. It is specified in a call to atk_object_connect_property_change_handler().Deprecated since version 2.12.