NAME

XtAppSetTypeConverter, XtSetTypeConverter - register resource converter

SYNTAX

void XtAppSetTypeConverter(XtAppContext _a_p_p___c_o_n_t_e_x_t, String _f_r_o_m___t_y_p_e, String _t_o___t_y_p_e, XtConverter _c_o_n_v_e_r_t_e_r, XtConvertArgList _c_o_n_v_e_r_t___a_r_g_s, Cardinal _n_u_m___a_r_g_s, XtCacheType _c_a_c_h_e___t_y_p_e, XtDestructor _d_e_s_t_r_u_c_t_o_r); void XtSetTypeConverter(String _f_r_o_m___t_y_p_e, String _t_o___t_y_p_e, XtConverter _c_o_n_v_e_r_t_e_r, XtConvertArgList _c_o_n_v_e_r_t___a_r_g_s, Cardinal _n_u_m___a_r_g_s, XtCacheType _c_a_c_h_e___t_y_p_e, XtDestructor _d_e_s_t_r_u_c_t_o_r);

ARGUMENTS

_a_p_p___c_o_n_t_e_x_t Specifies the application context.
_c_o_n_v_e_r_t_e_r Specifies the type converter procedure.
_c_o_n_v_e_r_t___a_r_g_s Specifies how to compute the additional arguments to the converter or NULL.
_f_r_o_m___t_y_p_e Specifies the source type.
_n_u_m___a_r_g_s Specifies the number of additional arguments to the converter or zero.
_t_o___t_y_p_e Specifies the destination type.
_c_a_c_h_e___t_y_p_e Specifies whether or not resources produced by this converter are
sharable or display-specific and when they should be freed.
_d_e_s_t_r_u_c_t_o_r Specifies a destroy procedure for resources produced by this conversion,
or NULL if no additional action is required to deallocate resources produced by the converter.

DESCRIPTION

_X_t_S_e_t_T_y_p_e_C_o_n_v_e_r_t_e_r registers the specified type converter and destructor in all application contexts created by the calling process, including any future application contexts that may be created. _X_t_A_p_p_S_e_t_T_y_p_e_C_o_n_v_e_r_t_e_r registers the specified type converter in the single application context specified. If the same _f_r_o_m___t_y_p_e and _t_o___t_y_p_e are specified in multiple calls to either function, the most recent overrides the previous ones.

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