NAME
XtGetApplicationResources, XtVaGetApplicationResources - obtain application resources
SYNTAX
void XtGetApplicationResources(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);
void XtVaGetApplicationResources(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, ...);
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.
-
_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.
-
or that identifies the resource database to search
-
_w
Specifies the widget that wants resources for a subpart .
-
-
_._._.
Specifies the variable arguments to override resources obtained from the resource database.
-
DESCRIPTION
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
_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