Returns #t iff x is an object of type context (application context).
(initialize-display context display application-name application-class)
See XtDisplayInitialize, XtOpenDisplay. If display is an object of type display, XtDisplayInitialize is called. If display is a display name (a string or a symbol) or #f, XtOpenDisplay is called (with a NULL display in the latter case), and the newly opened display is returned. application-name and application-class are strings or symbols or #f (NULL and the empty string are used in the latter case).
(application-initialize name . fallback-resources)
A convenience function that creates an application context by a call to create-context, sets the fallback resources (if any), initializes the display by a call to initialize-display with the specified name and a class of #f, and creates and returns an application shell with the name name and class #f.
Calling application-initialize more than once may cause the application contexts and displays that were created by earlier calls to be closed during a future garbage collection.
(set-context-fallback-resources! context . resources)
See XtAppSetFallbackResources. Each resource is a string.
See XtAppPending. Returns a list of symbols (x-event, timer, alternate-input).
(context-process-event context . mask)
See XtProcessEvent. The optional argument mask is a list of symbols (see context-pending above). XtIMAll is used if the mask argument is omitted
(context-add-work-proc context procedure)
See XtAppAddWorkProc. Returns an identifier that can be used as an argument to remove-work-proc. procedure is a procedure with no arguments.
See XtRemoveWorkProc. identifier must be the return value of a previous call to context-add-work-proc. Each such identifier can be used as an argument for remove-work-proc only once.
(context-add-timeout context timer-value procedure)
See XtAppAddTimeOut. timer-value is an integer. Returns an identifier that can be used as an argument to remove-timeout. The time-out procedure will be called with one argument, the identifier returned by the call to context-add-timeout (i.e. the object that uniquely identifies the timer).
See XtRemoveTimeOut. identifier must be the return value of a previous call to context-add-timeout. Each such identifier can be used as an argument for remove-timeout only once.
(context-add-input context source procedure . mask)
See XtAppAddInput. source is a file port. Returns an identifier that can be used as an argument to context-remove-input. The procedure will be called with two arguments - source and the identifier returned by the call to context-add-input.
The optional mask argument is a list of one or more of the symbols read, write, and exception. It specifies the condition on which the procedure will be called. If no mask argument is given, read is used if source is an input-port, write if it is an output-port, and both read and write if it is an input-output-port.
See XtRemoveInput. identifier must be the return value of a previous call to context-add-input. Each such identifier can be used as an argument for remove-input only once.
Returns #t iff x is an identifier (an object returned by
functions like context-add-timeout).