XtGetSubresources(3Xt) AIX (XT FUNCTIONS) XtGetSubresources(3Xt) NAME XtGetSubresources, XtGetApplicationResources - obtain subresources or application resources SYNTAX void XtGetSubresources(_w, _b_a_s_e, _n_a_m_e, _c_l_a_s_s, _r_e_s_o_u_r_c_e_s, _n_u_m__r_e_s_o_u_r_c_e_s, _a_r_g_s, _n_u_m__a_r_g_s) Widget _w; XtPointer _b_a_s_e; String _n_a_m_e; String _c_l_a_s_s; XtResourceList _r_e_s_o_u_r_c_e_s; Cardinal _n_u_m__r_e_s_o_u_r_c_e_s; ArgList _a_r_g_s; Cardinal _n_u_m__a_r_g_s; void XtGetApplicationResources(_w, _b_a_s_e, _r_e_s_o_u_r_c_e_s, _n_u_m__r_e_s_o_u_r_c_e_s, _a_r_g_s, _n_u_m__a_r_g_s) Widget _w; XtPointer _b_a_s_e; XtResourceList _r_e_s_o_u_r_c_e_s; Cardinal _n_u_m__r_e_s_o_u_r_c_e_s; ArgList _a_r_g_s; Cardinal _n_u_m__a_r_g_s; ARGUMENTS _a_r_g_s Specifies the argument list to override resources obtained from the resource database. _b_a_s_e Specifies the base address of the subpart data structure where the resources should be written. _c_l_a_s_s Specifies the class of the subpart. _n_a_m_e Specifies the name of the subpart. _n_u_m__a_r_g_s Specifies the number of arguments in the argument list. _n_u_m__r_e_s_o_u_r_c_e_s Specifies the number of resources in the resource list. _r_e_s_o_u_r_c_e_s Specifies the resource list for the subpart. _w Specifies the widget that wants resources for a subpart or that identifies the resource database to search. DESCRIPTION The _X_t_G_e_t_S_u_b_r_e_s_o_u_r_c_e_s function constructs a name/class list from the application name/class, the name/classes of all its ancestors, and the widget itself. Then, it appends to this Rev. Release 3 Page 1 XtGetSubresources(3Xt) AIX (XT FUNCTIONS) XtGetSubresources(3Xt) list the name/class pair passed in. The resources are fetched from the argument list, the resource database, or the default values in the resource list. Then, they are copied into the subpart record. If args is NULL, num_args must be zero. However, if num_args is zero, the argument list is not referenced. 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 passed widget, which is usually an application shell, to construct a resource name and class list, Then, it retrieves the resources from the argument list, the resource database, or the resource list default values. After adding base to each address, _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 copies the resources into the address given in the resource list. If args is NULL, num_args must be zero. However, if num_args is zero, the argument list is not referenced. The portable way to specify application resources is to declare them as members of a structure and pass the address of the structure as the base argument. SEE ALSO XtGetResourceList(3Xt) _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 _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e Rev. Release 3 Page 2