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

NAME

6       XtOpenApplication, XtVaOpenApplication - initialize, open, or close a
7       display
8

SYNTAX

10       Widget XtOpenApplication(XtAppContext *app_context_return, String
11              application_class, XrmOptionDescRec *options, Cardinal
12              num_options, int *argc_in_out, String *argv_in_out, String
13              *fallback_resources, WidgetClass widget_class, ArgList args,
14              Cardinal num_args);
15
16       Widget XtVaOpenApplication(XtAppContext *app_context_return, String
17              application_class, XrmOptionDescRec *options, Cardinal
18              num_options, int *argc_in_out, String *argv_in_out, String
19              *fallback_resources, WidgetClass widget_class, ...);
20

ARGUMENTS

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

DESCRIPTION

59       The XtOpenApplication function calls XtToolkitInitialize followed by
60       XtCreateApplicationContext, then calls XtOpenDisplay with dis‐
61       play_string NULL and application_name NULL, and finally calls XtAppCre‐
62       ateShell with application_name NULL, the specified widget_class, and
63       the specified args and num_args and returns the created shell. The mod‐
64       ified argc and argv returned by XtDisplayInitialize are returned in
65       argc_in_out and argv_in_out. If app_context_return is not NULL, the
66       created application context is also returned. If the display specified
67       by the command line cannot be opened, an error message is issued and
68       XtOpenApplication terminates the application. If fallback_resources is
69       non-NULL, XtAppSetFallbackResources is called with the value prior to
70       calling XtOpenDisplay.
71
72       XtAppInitialize and XtVaAppInitialize have been superceded by XtOpen‐
73       Application and XtVaOpenApplication respectively.
74

SEE ALSO

76       XtAppInitialize(3Xt), XtVaAppInitialize(3Xt)
77       X Toolkit Intrinsics - C Language Interface
78       Xlib - C Language X Interface
79
80
81
82X Version 11                      libXt 1.0.7             XtOpenApplication(3)
Impressum