XSetICValues(3)
β¨ NAME β¨
XSetICValues, XGetICValues β set and obtain XIC values π
This page is XSetICValues(3) from the XLIB FUNCTIONS manual, and we're about to get into all the IC value-setting and getting tea. π«Ά
πΈ SYNTAX πΈ
char * XSetICValues(XIC ic, ...);
char * XGetICValues(XIC ic, ...);
π ARGUMENTS π
icβ Specifies the input context....β Specifies the variable length argument list to set or get XIC values.
π DESCRIPTION π
Okay so XSetICValues is the setter bestie. It returns NULL if no error occurred; otherwise, it returns the name of the first argument that could not be set. An argument might not be set for any of the following reasons:
- The argument is read-only (for example,
XNFilterEvents). - The argument name is not recognized.
- An implementation-dependent error occurs.
Each value to be set must be an appropriate datum, matching the data type imposed by the semantics of the argument.
The XSetICValues can generate BadAtom, BadColor, BadCursor, BadPixmap, and BadWindow errors.
XGetICValues is the getter bestie. It returns NULL if no error occurred; otherwise, it returns the name of the first argument that could not be obtained. An argument could not be obtained for any of the following reasons:
- The argument name is not recognized.
- The input method encountered an implementation-dependent error.
Each IC attribute value argument (following a name) must point to a location where the IC value is to be stored. That is, if the IC value is of type T, the argument must be of type T*. If T itself is a pointer type, then XGetICValues allocates memory to store the actual data, and the client is responsible for freeing this data by calling XFree with the returned pointer. The exception to this rule is for an IC value of type XNVaNestedList (for preedit and status attributes). In this case, the argument must also be of type XVaNestedList. Then, the rule of changing type T to T* and freeing the allocated data applies to each element of the nested list.
π¦ DIAGNOSTICS π¦
BadAtomβ A value for anAtomargument does not name a definedAtom.BadColorβ A value for aColormapargument does not name a definedColormap.BadCursorβ A value for aCursorargument does not name a definedCursor.BadPixmapβ A value for aPixmapargument does not name a definedPixmap.BadWindowβ A value for aWindowargument does not name a definedWindow.
π SEE ALSO π
XCreateIC(3),XOpenIM(3),XSetICFocus(3),XmbResetIC(3)Xlib - C Language X Interface
π that's the whole vibe, signed off with X Version 11, libX11 1.8.14, and the XSetICValues(3) page β the footer doesn't list a date, so no made-up date tea here, periodt π
π¦ 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