XtCreateApplicationContext man page

XtCreateApplicationContext, XtDestroyApplicationContext, XtWidgetToApplicationContext, XtToolkitInitialize — create, destroy, and obtain an application context

Syntax

XtAppContext XtCreateApplicationContext(void);

void XtDestroyApplicationContext(XtAppContext app_context);

XtAppContext XtWidgetToApplicationContext(Widget w);

void XtToolkitInitialize(void);

Arguments

app_context
Specifies the application context.
w
Specifies the widget .

Description

The XtCreateApplicationContext function returns an application context, which is an opaque type. Every application must have at least one application context.

The XtDestroyApplicationContext 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 does not destroy the application context until the dispatch is complete.

The XtWidgetToApplicationContext function returns the application context for the specified widget.

The XtToolkitInitialize function initializes the Intrinsics internals. If XtToolkitInitialize was previously called it returns immediately.

See Also

XtDisplayInitialize(3)
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface

Referenced By

XtDisplayInitialize(3).

XtDestroyApplicationContext(3), XtToolkitInitialize(3) and XtWidgetToApplicationContext(3) are aliases of XtCreateApplicationContext(3).

libXt 1.1.5 X Version 11 XT FUNCTIONS