NAME

XCreateIC, XDestroyIC, XIMOfIC - create, destroy, and obtain the input method of an input context

SYNTAX

XIC XCreateIC(XIM _i_m, ...); void XDestroyIC(XIC _i_c); XIM XIMOfIC(XIC _i_c);

ARGUMENTS

_i_c Specifies the input context.
_i_m Specifies the input method.
... Specifies the variable length argument list to set XIC values.

DESCRIPTION

The _X_C_r_e_a_t_e_I_C function creates a context within the specified input method.

Some of the arguments are mandatory at creation time, and the input context will not be created if those arguments are not provided. The mandatory arguments are the input style and the set of text callbacks (if the input style selected requires callbacks). All other input context values can be set later.

_X_C_r_e_a_t_e_I_C returns a NULL value if no input context could be created. A NULL value could be returned for any of the following reasons:

· A required argument was not set.
· A read-only argument was set (for example,
_X_N_F_i_l_t_e_r_E_v_e_n_t_s).
· The argument name is not recognized.
· The input method encountered an input method implementation-dependent error.

The _X_C_r_e_a_t_e_I_C can generate _B_a_d_A_t_o_m, _B_a_d_C_o_l_o_r, _B_a_d_P_i_x_m_a_p, and _B_a_d_W_i_n_d_o_w errors.

_X_D_e_s_t_r_o_y_I_C destroys the specified input context.

The _X_I_M_O_f_I_C function returns the input method associated with the specified input context.

DIAGNOSTICS

_B_a_d_A_t_o_m
A value for an Atom argument does not name a defined Atom.
_B_a_d_C_o_l_o_r
A value for a Colormap argument does not name a defined Colormap.
_B_a_d_P_i_x_m_a_p
A value for a Pixmap argument does not name a defined Pixmap.
_B_a_d_W_i_n_d_o_w
A value for a Window argument does not name a defined Window.

SEE ALSO

XOpenIM(3X11), XSetICFocus(3X11), XSetICValues(3X11), XmbResetIC(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e