XMIMMBLOOKUPSTRING(3)
β¨ XmImMbLookupString β¨
okay bestie, welcome to the library call manual page for XmImMbLookupString π β she's an input manager function that pulls a composed string out of an input method, and honestly? she's doing the most and we love her for it π«Ά
πΈ NAME πΈ
XmImMbLookupString β an input manager function that retrieves a composed string from an input method π
π SYNOPSIS π
#include <Xm/XmIm.h>
int XmImMbLookupString(
Widget widget,
XKeyPressedEvent *event,
char *buffer_return,
int bytes_buffer,
KeySym *keysym_return,
int *status_return);
π¦ DESCRIPTION π¦
So here's the tea β β XmImMbLookupString hands you back a string that got composed in the locale associated with the widget's input method, plus a KeySym that's currently mapped to the keycode in a KeyPress event. And where does that KeySym come from, you ask? The standard interpretation of Shift, Lock and Group modifiers, exactly as defined in the X Protocol specification. no cap, that's literally the spec π
not me having to tell you this part: an XIM will be created, but an XIC will NOT be created π. So one of these three functions β XmImSetValues, XmImVaSetValues, or XmImGetXIC β needs to be called to create an XIC. don't skip this step bestie, it's giving required π
Here's the squad of arguments, one by one:
widgetβ specifies the ID of the widget registered with the input manager πeventβ specifies the key press event β¨οΈbuffer_returnβ specifies the buffer in which the string is returned π₯bytes_bufferβ specifies the size of the buffer in bytes πkeysym_returnβ specifies a pointer to theKeySymreturned if one exists πstatus_returnβ specifies the status values returned by the function. These status values are the same as those for theXmbLookupStringfunction β¨
And the possible status values areβ¦ (drumroll π₯):
XBufferOverflowβ the size of the buffer was insufficient to handle the returned string π±. The contents ofbuffer_returnandkeysym_returnare not modified. The required buffer size is returned as a value of the function. The client should repeat the call with a larger buffer size to receive the string. (like, just get a bigger buffer, it's fine π«Ά)XLookupNoneβ no consistent input was composed π. The contents ofbuffer_returnandkeysym_returnare not modified and the function returns a value of0.XLookupCharsβ some input characters were composed and returned inbuffer_returnπ. The content ofkeysym_returnis not modified. The function returns the length of the string in bytes.XLookupKeysymβ a keysym value was returned instead of a string π. The content ofbuffer_returnis not modified and the function returns a value of0.XLookupBothβ a keysym value and a string were returned π. The keysym value may not necessarily correspond to the string returned (iykyk π). The function returns the length of the string in bytes.
π RETURN π
Return values depend on the status returned by the function, bestie. Refer to the description of status values above β¬οΈ β they're all up there, go look π
β RELATED β
The whole friend group π«:
and that's the whole page, periodt π
β¨ this one lives in the library call manual, signed off as XmImMbLookupString(library call) β mwah, take care of her ππ¦
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms