X event interface to the Alias API. ( This class is not available on NT.)
#include <AlXevents.h> class AlXevents static statusCode installHandler( int (*)( XEvent* ) ); static statusCode uninstallHandler( int (*)( XEvent* ) ); static XtAppContext getXtAppContext( void ); static Widget getAppShell( void ); static statusCode addXdevice( const char *, int (*)(Widget, XDeviceInfoPtr) ); static statusCode getXdevID( const char *, int& ); static statusCode getXdevType( const char *, const char *, int& ); static statusCode getXdevice( const char *, XDevice ** ); static statusCode addXdevID( const char *, XDevice *, int ); static statusCode addXdevType( char *, const char *, int, int ); static statusCode applicationNotify(); static boolean belowAliasWindow( Widget );
This static class contains methods to handle custom X event handling in the Alias API.
Called by an interrupt handler to notify Alias that the handler has serviced the interrupt.
Adds a callback handler for X events. The handler function will be passed every X event before Alias handles it. If the callback handler returns 0, then Alias will ignore the event. If it returns 1, then Alias will handle the event normally.
func - callback pointer
sInvalidArgument - ’func’ was NULL
sSuccess - the event handler was installed
sFailure - the event handler was not installed
Removes a callback handler for X events.
func - callback pointer to an installed handler
sInvalidArgument - ’func’ was NULL
sSuccess - the event handler was uninstalled
sFailure - the event handler could not be found
Returns Alias’ XtAppContext.
Returns the application shell widget used by Alias. This widget should be used as a top level shell when creating custom dialog widgets for user interface interaction. Alias is responsible for processing and dispatching all events.
Adds the named X device to the list of Alias devices.
< name - the name of the device
< devXopen - function to call on opening of device
sInvalidArgument - name was NULL
sSuccess - the value was returned
sFailure - the variable could not be found
Retrieves the value of the named device from the Alias device list.
< name - the name of the device
> value - the returned value
sInvalidArgument - name was NULL
sSuccess - the value was returned
sFailure - the variable could not be found
Retrieves the value of the named device event from the Alias device list.
< name - the name of the device
< event - the name of the event ID wanted
> value - the returned value
sInvalidArgument - name was NULL
sSuccess - the value was returned
sFailure - the variable could not be found
Retrieves the value of the named device from the Alias device list.
< name - the name of the device
> xdev - pointer to the XDevice structure
sInvalidArgument - name was NULL
sSuccess - the value was returned
sFailure - the variable could not be found
Adds the named device to the Alias device list.
< name - the name of the device
< xdev - pointer to the XDevice structure
< dev_id - X device ID
sInvalidArgument - name was NULL
sSuccess - the value was returned
sFailure - the variable could not be found
Adds the named device event to the Alias device list.
< name - the name of the device
< event - the name of the event ID wanted
< type id - the event type to add
< class id - the event class to add
sInvalidArgument - name was NULL
sSuccess - the value was returned
sFailure - the variable could not be found
Returns TRUE if Widget w is lower than the Alias window. Otherwise FALSE is returned.