XtCreateApplicationContext(), XtDestroyApplicationContext(), XtWidgetToApplicationContext(), XtToolkitInitialize() - create, destroy, and obtain an application context
XtAppContext XtCreateApplicationContext (void)
void XtDestroyApplicationContext (XtAppContext app_context)
XtAppContext XtWidgetToApplicationContext (Widget w)
void XtToolkitInitialize (void)
The XtCreateApplicationContext(3) function returns an application context, which is an opaque type. Every application must have at least one application context.
The XtDestroyApplicationContext(3) function destroys the specified application context as soon as it is safe to do so. If called from with an event dispatch (for example, a callback procedure), XtDestroyApplicationContext(3) does not destroy the application context until the dispatch is complete.
The XtWidgetToApplicationContext(3) function returns the application context for the specified widget.
The semantics of calling XtToolkitInitialize(3) more than once are undefined.
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface