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

  1.  
  2.  
  3.  
  4. XtGetApplicationResources(3XXtT)FUNCTIXOtNGSetApplicationResources(3Xt)
  5.  
  6.  
  7. NNAAMMEE
  8.        XtGetApplicationResources, XtVaGetApplicationResources -
  9.        obtain application resources
  10.  
  11. SSYYNNTTAAXX
  12.        void XtGetApplicationResources(_w, _b_a_s_e, _r_e_s_o_u_r_c_e_s,
  13.        _n_u_m___r_e_s_o_u_r_c_e_s, _a_r_g_s, _n_u_m___a_r_g_s)
  14.          Widget _w;
  15.          XtPointer _b_a_s_e;
  16.          XtResourceList _r_e_s_o_u_r_c_e_s;
  17.          Cardinal _n_u_m___r_e_s_o_u_r_c_e_s;
  18.          ArgList _a_r_g_s;
  19.          Cardinal _n_u_m___a_r_g_s;
  20.  
  21.        void XtVaGetApplicationResources(_w, _b_a_s_e, _r_e_s_o_u_r_c_e_s,
  22.        _n_u_m___r_e_s_o_u_r_c_e_s,_._._.)
  23.          Widget _w;
  24.          XtPointer _b_a_s_e;
  25.          XtResourceList _r_e_s_o_u_r_c_e_s;
  26.          Cardinal _n_u_m___r_e_s_o_u_r_c_e_s;
  27.  
  28. AARRGGUUMMEENNTTSS
  29.        _a_r_g_s     Specifies the argument list to override
  30.          resources obtained from the resource database.
  31.  
  32.        _b_a_s_e     Specifies the base address of the subpart data
  33.          structure where the resources should be written.
  34.  
  35.        _n_u_m___a_r_g_s     Specifies the number of arguments in the argu-
  36.          ment list.
  37.  
  38.        _n_u_m___r_e_s_o_u_r_c_e_s
  39.          Specifies the number of resources in the
  40.          resource list.
  41.  
  42.        _r_e_s_o_u_r_c_e_s Specifies the resource list for the subpart.
  43.  
  44.        _w     Specifies the widget that wants resources for a
  45.          subpart or that identifies the resource database
  46.          to search.
  47.  
  48.        _._._.     Specifies the variable arguments to override
  49.          resources obtained from the resource database.
  50.  
  51. DDEESSCCRRIIPPTTIIOONN
  52.        The _X_t_G_e_t_A_p_p_l_i_c_a_t_i_o_n_R_e_s_o_u_r_c_e_s function first uses the
  53.        passed widget, which is usually an application shell, to
  54.        construct a resource name and class list, Then, it
  55.        retrieves the resources from the argument list, the
  56.        resource database, or the resource list default values.
  57.        After adding base to each address, _X_t_G_e_t_A_p_p_l_i_c_a_t_i_o_n_-
  58.        _R_e_s_o_u_r_c_e_s copies the resources into the address given in
  59.        the resource list.  If args is NULL, num_args must be
  60.        zero.  However, if num_args is zero, the argument list is
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XtGetApplicationResources(3XXtT)FUNCTIXOtNGSetApplicationResources(3Xt)
  71.  
  72.  
  73.        not referenced.    The portable way to specify application
  74.        resources is to declare them as members of a structure and
  75.        pass the address of the structure as the base argument.
  76.  
  77. SSEEEE AALLSSOO
  78.        _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
  79.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  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.