NAME
XtGetResourceList, XtGetConstraintResourceList - obtain resource list
SYNTAX
void XtGetResourceList(WidgetClass _c_l_a_s_s, XtResourceList
*_r_e_s_o_u_r_c_e_s___r_e_t_u_r_n, Cardinal *_n_u_m___r_e_s_o_u_r_c_e_s___r_e_t_u_r_n);
void XtGetConstraintResourceList(WidgetClass _c_l_a_s_s, XtResourceList
*_r_e_s_o_u_r_c_e_s___r_e_t_u_r_n, Cardinal *_n_u_m___r_e_s_o_u_r_c_e_s___r_e_t_u_r_n);
ARGUMENTS
-
_n_u_m___r_e_s_o_u_r_c_e_s___r_e_t_u_r_n
Specifies a pointer to where to store the number of entries in the
-
resource list.
-
_r_e_s_o_u_r_c_e_s___r_e_t_u_r_n
Specifies a pointer to where to store the returned resource list.
-
The caller must free this storage using
_X_t_F_r_e_e
when done with it.
-
_w_i_d_g_e_t___c_l_a_s_s
Specifies the widget class.
-
DESCRIPTION
If
_X_t_G_e_t_R_e_s_o_u_r_c_e_L_i_s_t
is called before the widget class is initialized (that is,
before the first widget of that class has been created),
_X_t_G_e_t_R_e_s_o_u_r_c_e_L_i_s_t
returns the resource list as specified in the widget class record.
If it is called after the widget class has been initialized,
_X_t_G_e_t_R_e_s_o_u_r_c_e_L_i_s_t
returns a merged resource list that contains the resources
for all superclasses. The list returned by
_X_t_G_e_t_R_e_s_o_u_r_c_e_L_i_s_t
should be freed using
_X_t_F_r_e_e
when it is no longer needed.
If
_X_t_G_e_t_C_o_n_s_t_r_a_i_n_t_R_e_s_o_u_r_c_e_L_i_s_t
is called before the widget class is initialized (that is,
before the first widget of that class has been created),
_X_t_G_e_t_C_o_n_s_t_r_a_i_n_t_R_e_s_o_u_r_c_e_L_i_s_t
returns the resource list as specified in the widget class Constraint
part record. If it is called after the widget class has been initialized,
_X_t_G_e_t_C_o_n_s_t_r_a_i_n_t_R_e_s_o_u_r_c_e_L_i_s_t
returns a merged resource list that contains the Constraint resources
for all superclasses. If the specified class is not a subclass of
_c_o_n_s_t_r_a_i_n_t_W_i_d_g_e_t_C_l_a_s_s,
_*_r_e_s_o_u_r_c_e_s___r_e_t_u_r_n is set to NULL and _*_n_u_m___r_e_s_o_u_r_c_e_s___r_e_t_u_r_n
is set to zero. The list returned by
_X_t_G_e_t_C_o_n_s_t_r_a_i_n_t_R_e_s_o_u_r_c_e_L_i_s_t
should be freed using
_X_t_F_r_e_e
when it is no longer needed.
SEE ALSO
XtGetSubresources(3Xt),
XtOffset(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