void xvw_add_callback(
xvobject object,
char *type,
void (*callback_routine)(xvobject, kaddr, kaddr),
kaddr client_data)
XVW_BUTTON_SELECT
XVW_DESTROY
XVW_GENERAL
XVW_LIST_HIGHLT_ELEM
XVW_LIST_ITEM_ACTION
XVW_LIST_ITEM_SELECT
XVW_LIST_UNHIGHLT_ELEM
XVW_SCROLL_CONT_MOTION
XVW_SCROLL_INCR_MOTION
XVW_DOUBLE_CALLBACK
XVW_ERROR_CALLBACK
XVW_FLOAT_CALLBACK
XVW_GEOMETRY_CALLBACK
XVW_HELP_CALLBACK
XVW_INFO_CALLBACK
XVW_INPUTFILE_CALLBACK
XVW_INTEGER_CALLBACK
XVW_LAYOUT_CALLBACK
XVW_OUTPUTFILE_CALLBACK
XVW_SELECT_CALLBACK
XVW_TEXTDISPLAY_CALLBACK
XVW_TEXTINPUT_CALLBACK
XVW_WARN_CALLBACK
none
A callback must be defined as follows:
void callback(
xvobject object,
kaddr client_data,
kaddr call_data)
object - The GUI object for which the callback was invoked.
client_data - The pointer to the private client data, used to pass parameters from the application to the callback routine. call_data - The call_data is the mechanism through which the GUI object itself can pass parameters to a callback when * ! applicable. The structure type of the call_data is defined by the GUI object; it must be cast to its correct structure type before being used in the callback. Please see the documentation on the particular GUI object of interest for the definition and use of the call_data pointer by a particular GUI object.
none
none
$DESIGN/objects/library/xvwidgets/src/callback.c