Util

A set of ATK utility functions which are used to support event registration of various types, and obtaining the 'root' accessible of a process and information about the current ATK implementation and toolkit version.

Members

Static functions

addFocusTracker
uint addFocusTracker(AtkEventListener focusTracker)

Adds the specified function to the list of functions to be called when an object receives focus.

addGlobalEventListener
uint addGlobalEventListener(GSignalEmissionHook listener, string eventType)

Adds the specified function to the list of functions to be called when an ATK event of type event_type occurs.

addKeyEventListener
uint addKeyEventListener(AtkKeySnoopFunc listener, void* data)

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 AtkKeySnoopFunc (listener) as the func_data param, on notification.

focusTrackerInit
void focusTrackerInit(AtkEventListenerInit init)

Specifies the function to be called for focus tracker initialization. This function should be called by an implementation of the ATK interface if any specific work needs to be done to enable focus tracking.

focusTrackerNotify
void focusTrackerNotify(ObjectAtk object)

Cause the focus tracker functions which have been specified to be executed for the object.

getFocusObject
ObjectAtk getFocusObject()

Gets the currently focused object.

getRoot
ObjectAtk getRoot()

Gets the root accessible container for the current application.

getToolkitName
string getToolkitName()

Gets name string for the GUI toolkit implementing ATK for this application.

getType
GType getType()
removeFocusTracker
void removeFocusTracker(uint trackerId)
removeGlobalEventListener
void removeGlobalEventListener(uint listenerId)

listener_id is the value returned by atk_add_global_event_listener when you registered that event listener.

removeKeyEventListener
void removeKeyEventListener(uint listenerId)

listener_id is the value returned by atk_add_key_event_listener when you registered that event listener.

Meta