XtAppInitialize(), XtVaAppInitialize() - initialize, open, or close a display
Widget XtAppInitialize(app_context_return,
application_class, options, num_options,
argc_in_out, argv_in_out, fallback_resources,
args, num_args)
XtAppContext app_context_return;
String application_class;
XrmOptionDescRec* options;
Cardinal num_options;
int* argc_in_out;
String* argv_in_out;
String* fallback_resources;
ArgList args;
Cardinal num_args;
Widget XtVaAppInitialize(XtAppContext app_context_return,
String application_class, XrmOptionDescRec *options,
Cardinal num_options, int *argc_in_out,
String *argv_in_out, String *fallback_resources, ...)
The XtAppInitialize(3) function calls XtToolkitInitialize(3) followed by XtCreateApplicationContext(3), then calls XtOpenDisplay(3) with display_string NULL and application_name NULL, and finally calls XtAppCreateShell(3) with application_name NULL, widget_class applicationShellWidgetClass, and the specified args and num_args and returns the created shell. The modified argc and argv returned by XtDisplayInitialize(3) are returned in argc_in_out and argv_in_out. If app_context_return is not NULL, the created application context is also returned. If the display specified by the command line cannot be opened, an error message is issued and XtAppInitialize(3) terminates the application. If fallback_resources is non-NULL, XtAppSetFallbackResources is called with the value prior to calling XtOpenDisplay.
In X11R6, XtAppInitialize(3) and XtVaAppInitialize(3) have been superceded by XtOpenApplication and XtVaOpenApplication respectively.
XtOpenApplication
XtVaOpenApplication
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface