home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xtappinitialize.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  5.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4. XtAppInitialize(3Xt)       XT FUNCTIONS         XtAppInitialize(3Xt)
  5.  
  6.  
  7. NNAAMMEE
  8.        XtAppInitialize, XtVaAppInitialize - initialize, open, or
  9.        close a display
  10.  
  11. SSYYNNTTAAXX
  12.        Widget XtAppInitialize(_a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n, _a_p_p_l_i_c_a_-
  13.        _t_i_o_n___c_l_a_s_s, _o_p_t_i_o_n_s, _n_u_m___o_p_t_i_o_n_s, _a_r_g_c___i_n___o_u_t,
  14.        _a_r_g_v___i_n___o_u_t, _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s, _a_r_g_s, _n_u_m___a_r_g_s)
  15.          XtAppContext _a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n;
  16.          String _a_p_p_l_i_c_a_t_i_o_n___c_l_a_s_s;
  17.          XrmOptionDescRec* _o_p_t_i_o_n_s;
  18.          Cardinal _n_u_m___o_p_t_i_o_n_s;
  19.          int* _a_r_g_c___i_n___o_u_t;
  20.          String* _a_r_g_v___i_n___o_u_t;
  21.          String* _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s;
  22.          ArgList _a_r_g_s;
  23.          Cardinal _n_u_m___a_r_g_s;
  24.  
  25.        Widget XtVaAppInitialize(_a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n, _a_p_p_l_i_c_a_-
  26.        _t_i_o_n___c_l_a_s_s, _o_p_t_i_o_n_s, _n_u_m___o_p_t_i_o_n_s, _a_r_g_c___i_n___o_u_t,
  27.        _a_r_g_v___i_n___o_u_t, _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s, ...)
  28.          XtAppContext _a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n;
  29.          String _a_p_p_l_i_c_a_t_i_o_n___c_l_a_s_s;
  30.          XrmOptionDescRec* _o_p_t_i_o_n_s;
  31.          Cardinal _n_u_m___o_p_t_i_o_n_s;
  32.          int* _a_r_g_c___i_n___o_u_t;
  33.          String* _a_r_g_v___i_n___o_u_t;
  34.          String* _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s;
  35.  
  36. AARRGGUUMMEENNTTSS
  37.        _a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n
  38.          Specifies the application context.
  39.  
  40.        _a_p_p_l_i_c_a_t_i_o_n___c_l_a_s_s
  41.          Specifies the class name of this application,
  42.          which usually is the generic name for all
  43.          instances of this application.
  44.  
  45.        _o_p_t_i_o_n_s     Specifies how to parse the command line for any
  46.          application-specific resources.  The options
  47.          argument is passed as a parameter to
  48.          _X_r_m_P_a_r_s_e_C_o_m_m_a_n_d.  For further information, see
  49.          _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e.
  50.  
  51.        _n_u_m___o_p_t_i_o_n_s
  52.          Specifies the number of entries in the options
  53.          list.
  54.  
  55.        _a_r_g_c___i_n___o_u_t
  56.          Specifies a pointer to the number of command
  57.          line parameters.
  58.  
  59.        _a_r_g_v___i_n___o_u_t
  60.          Specifies the command line parameters.
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XtAppInitialize(3Xt)       XT FUNCTIONS         XtAppInitialize(3Xt)
  71.  
  72.  
  73.        _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s
  74.          Specifies resource valus to be used if the
  75.          application class resource file cannot be opened
  76.          or read, or NULL.
  77.  
  78.        _a_r_g_s     Specifies the argument list to override any
  79.          other resource specification for the created
  80.          shell widget.
  81.  
  82.        _n_u_m___a_r_g_s     Specifies the number of entries in the argument
  83.          list.
  84.  
  85.        _._._.     Specifies the variable argument list to override
  86.          any other resource specification for the created
  87.          shell widget.
  88.  
  89. DDEESSCCRRIIPPTTIIOONN
  90.        The _X_t_A_p_p_I_n_i_t_i_a_l_i_z_e function calls _X_t_T_o_o_l_k_i_t_I_n_i_t_i_a_l_i_z_e
  91.        followed by _X_t_C_r_e_a_t_e_A_p_p_l_i_c_a_t_i_o_n_C_o_n_t_e_x_t, then calls
  92.        _X_t_O_p_e_n_D_i_s_p_l_a_y with _d_i_s_p_l_a_y___s_t_r_i_n_g NULL and _a_p_p_l_i_c_a_-
  93.        _t_i_o_n___n_a_m_e NULL, and finally calls _X_t_A_p_p_C_r_e_a_t_e_S_h_e_l_l with
  94.        _a_p_p_c_a_t_i_o_n___n_a_m_e NULL, _w_i_d_g_e_t___c_l_a_s_s
  95.        _a_p_p_l_i_c_a_t_i_o_n_S_h_e_l_l_W_i_d_g_e_t_C_l_a_s_s, and the specified _a_r_g_s and
  96.        _n_u_m___a_r_g_s and returns the created shell. The modified _a_r_g_c
  97.        and _a_r_g_v returned by _X_t_D_i_s_p_l_a_y_I_n_i_t_i_a_l_i_z_e are returned in
  98.        _a_r_g_c___i_n___o_u_t and _a_r_g_v___i_n___o_u_t. If _a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n is not
  99.        NULL, the created application context is also returned. If
  100.        the display specified by the command line cannot be
  101.        opened, an error message is issued and _X_t_A_p_p_I_n_i_t_i_a_l_i_z_e
  102.        terminates the application. If _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s is non-
  103.        NULL, _X_t_A_p_p_S_e_t_F_a_l_l_b_a_c_k_R_e_s_o_u_r_c_e_s is called with the value
  104.        prior to calling _X_t_O_p_e_n_D_i_s_p_l_a_y.
  105.  
  106.        XtAppInitialize and XtVaAppInitialize have been superceded
  107.        by _X_t_O_p_e_n_A_p_p_l_i_c_a_t_i_o_n and _X_t_V_a_O_p_e_n_A_p_p_l_i_c_a_t_i_o_n respectively.
  108.  
  109. SSEEEE AALLSSOO
  110.        XtOpenApplication(3Xt), XtVaOpenApplication(3Xt)
  111.        _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s _- _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  112.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.