1XtAppInitialize(3) XT FUNCTIONS XtAppInitialize(3)
2
3
4
6 XtAppInitialize, XtVaAppInitialize - initialize, open, or close a dis‐
7 play
8
10 #include <X11/Intrinsic.h>
11
12 Widget XtAppInitialize(XtAppContext* app_context_return, const char
13 *application_class, XrmOptionDescRec* options, Cardinal
14 num_options, int *argc_in_out, char **argv_in_out, String *fall‐
15 back_resources, ArgList args, Cardinal num_args);
16
17 Widget XtVaAppInitialize(XtAppContext* app_context_return, const char
18 *application_class, XrmOptionDescRec* options, Cardinal
19 num_options, int *argc_in_out, char **argv_in_out, String *fall‐
20 back_resources, ...);
21
23 app_context_return
24 Specifies the application context.
25
26 application_class
27 Specifies the class name of this application, which usually
28 is the generic name for all instances of this application.
29
30 options Specifies how to parse the command line for any application-
31 specific resources. The options argument is passed as a
32 parameter to XrmParseCommand. For further information, see
33 Xlib - C Language X Interface.
34
35 num_options
36 Specifies the number of entries in the options list.
37
38 argc_in_out
39 Specifies a pointer to the number of command line parameters.
40
41 argv_in_out
42 Specifies the command line parameters.
43
44 fallback_resources
45 Specifies resource values to be used if the application class
46 resource file cannot be opened or read, or NULL.
47
48 args Specifies the argument list to override any other resource
49 specification for the created shell widget.
50
51 num_args Specifies the number of entries in the argument list.
52
53 ... Specifies the variable argument list to override any other
54 resource specification for the created shell widget.
55
57 The XtAppInitialize function calls XtToolkitInitialize followed by
58 XtCreateApplicationContext, then calls XtOpenDisplay with dis‐
59 play_string NULL and application_name NULL, and finally calls XtAppCre‐
60 ateShell with application_name NULL, widget_class applicationShellWid‐
61 getClass, and the specified args and num_args and returns the created
62 shell. The modified argc and argv returned by XtDisplayInitialize are
63 returned in argc_in_out and argv_in_out. If app_context_return is not
64 NULL, the created application context is also returned. If the display
65 specified by the command line cannot be opened, an error message is
66 issued and XtAppInitialize terminates the application. If fall‐
67 back_resources is non-NULL, XtAppSetFallbackResources is called with
68 the value prior to calling XtOpenDisplay.
69
70 XtAppInitialize and XtVaAppInitialize have been superceded by XtOpenAp‐
71 plication and XtVaOpenApplication respectively.
72
74 XtOpenApplication(3), XtVaOpenApplication(3)
75 X Toolkit Intrinsics - C Language Interface
76 Xlib - C Language X Interface
77
78
79
80X Version 11 libXt 1.1.5.1 XtAppInitialize(3)