XCreateIC(), XDestroyIC(), XIMOfIC() - create, destroy, and obtain the input method of an input context
XIC XCreateIC (XIM im, ...)
void XDestroyIC (XIC ic)
XIM XIMOfIC (XIC ic)
The XCreateIC(3) 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 they are not provided. Those 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.
XCreateIC(3) returns a NULL value if no input context could be created. A NULL value could be returned for any of the following reasons:
The XCreateIC(3) can generate BadAtom, BadColor, BadPixmap, and BadWindow errors.
XDestroyIC(3) destroys the specified input context.
The XIMOfIC(3) function returns the input method associated with the specified input context.
XOpenIM()
Xlib