MirOS Manual: XtAppInitialize(3), XtVaAppInitialize(3)


XtAppInitialize(3Xt)      XT FUNCTIONS       XtAppInitialize(3Xt)

NAME

     XtAppInitialize, XtVaAppInitialize - initialize, open, or
     close a display

SYNTAX

     Widget XtAppInitialize(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, ...);

ARGUMENTS

     app_context_return
               Specifies the application context.

     application_class
               Specifies the class name of this application,
               which usually is the generic name for all
               instances of this application.

     options   Specifies how to parse the command line for any
               application-specific resources. The options argu-
               ment is passed as a parameter to XrmParseCommand.
               For further information, see Xlib - C Language X
               Interface.

     num_options
               Specifies the number of entries in the options
               list.

     argc_in_out
               Specifies a pointer to the number of command line
               parameters.

     argv_in_out
               Specifies the command line parameters.

     fallback_resources
               Specifies resource values to be used if the appli-
               cation class resource file cannot be opened or
               read, or NULL.

     args      Specifies the argument list to override any other
               resource specification for the created shell
               widget.

     num_args  Specifies the number of entries in the argument

XFree86                   Version 4.5.0                         1

XtAppInitialize(3Xt)      XT FUNCTIONS       XtAppInitialize(3Xt)

               list.

     ...       Specifies the variable argument list to override
               any other resource specification for the created
               shell widget.

DESCRIPTION

     The XtAppInitialize function calls XtToolkitInitialize fol-
     lowed by XtCreateApplicationContext, then calls XtOpen-
     Display with display_string NULL and application_name NULL,
     and finally calls XtAppCreateShell 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
     are returned in argc_in_out and argv_in_out. If
     app_context_return is not NULL, the created application con-
     text is also returned. If the display specified by the com-
     mand line cannot be opened, an error message is issued and
     XtAppInitialize terminates the application. If
     fallback_resources is non-NULL, XtAppSetFallbackResources is
     called with the value prior to calling XtOpenDisplay.

     XtAppInitialize and XtVaAppInitialize have been superceded
     by XtOpenApplication and XtVaOpenApplication respectively.

SEE ALSO

     XtOpenApplication(3Xt), XtVaOpenApplication(3Xt)
     X Toolkit Intrinsics - C Language Interface
     Xlib - C Language X Interface

XFree86                   Version 4.5.0                         2

Generated on 2017-04-03 16:26:17 by $MirOS: src/scripts/roff2htm,v 1.88 2017/01/29 00:51:06 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002–2017 The MirOS Project, Germany.
This product includes material provided by mirabilos.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.