1XtAppInitialize(3)               XT FUNCTIONS               XtAppInitialize(3)
2
3
4

NAME

6       XtAppInitialize, XtVaAppInitialize - initialize, open, or close a dis‐
7       play
8

SYNTAX

10       Widget XtAppInitialize(XtAppContext* app_context_return, String appli‐
11              cation_class, XrmOptionDescRec* options, Cardinal num_options,
12              int* argc_in_out, String* argv_in_out, String* fall‐
13              back_resources, ArgList args, Cardinal num_args);
14
15       Widget XtVaAppInitialize(XtAppContext* app_context_return, String
16              application_class, XrmOptionDescRec* options, Cardinal
17              num_options, int* argc_in_out, String* argv_in_out, String*
18              fallback_resources, ...);
19

ARGUMENTS

21       app_context_return
22                 Specifies the application context.
23
24       application_class
25                 Specifies the class name of this application, which usually
26                 is the generic name for all instances of this application.
27
28       options   Specifies how to parse the command line for any application-
29                 specific resources.  The options argument is passed as a
30                 parameter to XrmParseCommand.  For further information, see
31                 Xlib - C Language X Interface.
32
33       num_options
34                 Specifies the number of entries in the options list.
35
36       argc_in_out
37                 Specifies a pointer to the number of command line parameters.
38
39       argv_in_out
40                 Specifies the command line parameters.
41
42       fallback_resources
43                 Specifies resource values to be used if the application class
44                 resource file cannot be opened or read, or NULL.
45
46       args      Specifies the argument list to override any other resource
47                 specification for the created shell widget.
48
49       num_args  Specifies the number of entries in the argument list.
50
51       ...       Specifies the variable argument list to override any other
52                 resource specification for the created shell widget.
53

DESCRIPTION

55       The XtAppInitialize function calls XtToolkitInitialize followed by
56       XtCreateApplicationContext, then calls XtOpenDisplay with dis‐
57       play_string NULL and application_name NULL, and finally calls XtAppCre‐
58       ateShell with application_name NULL, widget_class applicationShellWid‐
59       getClass, and the specified args and num_args and returns the created
60       shell. The modified argc and argv returned by XtDisplayInitialize are
61       returned in argc_in_out and argv_in_out. If app_context_return is not
62       NULL, the created application context is also returned. If the display
63       specified by the command line cannot be opened, an error message is
64       issued and XtAppInitialize terminates the application. If fall‐
65       back_resources is non-NULL, XtAppSetFallbackResources is called with
66       the value prior to calling XtOpenDisplay.
67
68       XtAppInitialize and XtVaAppInitialize have been superceded by XtOpenAp‐
69       plication and XtVaOpenApplication respectively.
70

SEE ALSO

72       XtOpenApplication(3Xt), XtVaOpenApplication(3Xt)
73       X Toolkit Intrinsics - C Language Interface
74       Xlib - C Language X Interface
75
76
77
78X Version 11                      libXt 1.0.7               XtAppInitialize(3)
Impressum