XCreateIC(3)
π NAME π
XCreateIC, XDestroyIC, XIMOfIC β bestie, this trio is literally here to create, destroy, and obtain the input method of an input context. This is the XCreateIC(3) page from the XLIB FUNCTIONS manual, and yes it's giving very Xlib C-language energy. π
β¨ SYNTAX β¨
XIC XCreateIC(XIM im, ...);
void XDestroyIC(XIC ic);
XIM XIMOfIC(XIC ic);
π ARGUMENTS π
icβ specifies the input context, aka the IC you're talking about.imβ specifies the input method, aka the IM in the room....β specifies the variable length argument list to set XIC values. variable length, so bring your whole group chat of args. π
π DESCRIPTION π
The XCreateIC function creates a context within the specified input method. slay β¨
Some of the arguments are mandatory at creation time, and ngl 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 β lowkey flexible like that. π¦
XCreateIC 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,
XNFilterEvents). - The argument name is not recognized.
- The input method encountered an input method implementation-dependent error.
The XCreateIC can generate BadAtom, BadColor, BadPixmap, and BadWindow errors. Not cute, but facts are facts. π
XDestroyIC destroys the specified input context. bye bestie π
The XIMOfIC function returns the input method associated with the specified input context. It's giving βwho's your IM?β energy. π¦
π©Ί DIAGNOSTICS π©Ί
BadAtomβ A value for anAtomargument does not name a definedAtom.BadColorβ A value for aColormapargument does not name a definedColormap.BadPixmapβ A value for aPixmapargument does not name a definedPixmap.BadWindowβ A value for aWindowargument does not name a definedWindow.
π SEE ALSO π
XOpenIM(3)XSetICFocus(3)XSetICValues(3)XmbResetIC(3)Xlib - C Language X Interface
Final sign-off, periodt: source/version X Version 11 + libX11 1.8.14, page XCreateIC(3) β mwah π
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms