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