Util

Description 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 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. Since 1.6

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.

getToolkitVersion
string getToolkitVersion()

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

getVersion
string getVersion()

Gets the current version for ATK. Since 1.20

removeFocusTracker
void removeFocusTracker(uint trackerId)

Removes the specified focus tracker from the list of functions to be called when any object receives focus.

removeGlobalEventListener
void removeGlobalEventListener(uint listenerId)

Removes the specified event listener

removeKeyEventListener
void removeKeyEventListener(uint listenerId)

Removes the specified event listener

Meta