atk.Util.Util Class Reference

List of all members.

Detailed Description

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.


Static Public Member Functions

static uint addFocusTracker (AtkEventListener focusTracker)
 Adds the specified function to the list of functions to be called when an object receives focus.
static void removeFocusTracker (uint trackerId)
 Removes the specified focus tracker from the list of functions to be called when any object receives focus.
static void focusTrackerInit (AtkEventListenerInit init)
 Specifies the function to be called for focus tracker initialization.
static void focusTrackerNotify (AtkObject *object)
 Cause the focus tracker functions which have been specified to be executed for the object.
static uint addGlobalEventListener (GSignalEmissionHook listener, char[] eventType)
 Adds the specified function to the list of functions to be called when an event of type event_type occurs.
static void removeGlobalEventListener (uint listenerId)
 Removes the specified event listener listener_id: the id of the event listener to remove.
static uint addKeyEventListener (AtkKeySnoopFunc listener, void *data)
 Adds the specified function to the list of functions to be called when a key event occurs.
static void removeKeyEventListener (uint listenerId)
 Removes the specified event listener listener_id: the id of the event listener to remove.
static AtkObjectgetRoot ()
 Gets the root accessible container for the current application.
static AtkObjectgetFocusObject ()
 Gets the currently focused object.
static char[] getToolkitName ()
 Gets name string for the GUI toolkit implementing ATK for this application.
static char[] getToolkitVersion ()
 Gets version string for the GUI toolkit implementing ATK for this application.


Member Function Documentation

static uint atk.Util.Util.addFocusTracker ( AtkEventListener  focusTracker  )  [static]

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

focus_tracker: Function to be added to the list of functions to be called when an object receives focus. Returns: added focus tracker id, or 0 on failure.

static uint atk.Util.Util.addGlobalEventListener ( GSignalEmissionHook  listener,
char[]  eventType 
) [static]

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

listener: the listener to notify event_type: the type of event for which notification is requested Returns: added event listener id, or 0 on failure.

static uint atk.Util.Util.addKeyEventListener ( AtkKeySnoopFunc  listener,
void *  data 
) [static]

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. listener: the listener to notify data: a gpointer 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.

static void atk.Util.Util.focusTrackerInit ( AtkEventListenerInit  init  )  [static]

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. init: Function to be called for focus tracker initialization

static void atk.Util.Util.focusTrackerNotify ( AtkObject object  )  [static]

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

object: an AtkObject

static AtkObject* atk.Util.Util.getFocusObject (  )  [static]

Gets the currently focused object.

Returns: Returns: the currently focused object for the current application Since ATK 1.6

static AtkObject* atk.Util.Util.getRoot (  )  [static]

Gets the root accessible container for the current application.

Returns: the root accessible container for the current application

static char [] atk.Util.Util.getToolkitName (  )  [static]

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

Returns: name string for the GUI toolkit implementing ATK for this application

static char [] atk.Util.Util.getToolkitVersion (  )  [static]

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

Returns: version string for the GUI toolkit implementing ATK for this application

static void atk.Util.Util.removeFocusTracker ( uint  trackerId  )  [static]

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

tracker_id: the id of the focus tracker to remove

static void atk.Util.Util.removeGlobalEventListener ( uint  listenerId  )  [static]

Removes the specified event listener listener_id: the id of the event listener to remove.

static void atk.Util.Util.removeKeyEventListener ( uint  listenerId  )  [static]

Removes the specified event listener listener_id: the id of the event listener to remove.


SourceForge.net Logo DSource.org Logo digitalmars.com Logo