XMIMSETVALUES(3)
π XmImSetValues π
okay so bestie, welcome to the XmImSetValues page β it's a library call from the Xm world, and it's literally the glow-up button for your input context β¨
πΈ NAME πΈ
XmImSetValues β an input manager function that updates attributes of an input context. no cap, that's the whole job π«Ά
β¨ SYNOPSIS β¨
#include <Xm/XmIm.h>
void XmImSetValues(
Widget widget,
ArgList arglist,
Cardinal argcount,
);
π DESCRIPTION π
So like, XmImSetValues updates the attributes of the input context that's associated with the widget you specify. The arglist argument is a list of attribute/value pairs for the input context. This function passes those attributes and values straight on over to XICSetValues. π
The initial call to this routine should pass in all of the input context attributes. After that? The application programmer calls XmImSetValues, for an XIC, only if a value has actually changed. like, don't do the most for no reason π
If the previous parameters for the widget's XIC don't allow the previously registered XIC to be reused, that XIC gets unregistered, and a new one gets created and registered with the widget. It's giving β¨rebrandβ¨. But note that sharing of data is preserved β the vibes carry over, fr fr.
Also, heads up: the Text and TextField widgets call the XmImSetValues function when they receive focus. So for these widgets, further calls to XmImSetValues are unnecessary. they already handled it, bestie, let them cook π
widget β Specifies the ID of the widget registered with the input manager.
arglist β Specifies the list of attribute/value pairs to be passed to XICSetValues; the following attributes are accepted: XmNpreeditStartCallback, XmNpreeditDoneCallback, XmNpreeditDrawCallback and XmNpreeditCaretCallback. These attributes accept an accompanying value of type pointer to structure of type XIMCallback.
These callbacks are used only when the XmNpreeditType resource of the relevant VendorShell has the "onthespot" value, and the XIM supports XIMPreeditCallbacks input style. If that condition isn't met, these values are ignored. periodt. π«
For each of these callbacks, if the callback value is not set by this function, no action will be taken when the Input Method tries to call this callback. So like, no callback value = no callback action, iykyk. Refer to the "Xlib - C Language X Interface, X Version 11, Release 6," Chapter 13 for the detail of these callbacks π
argcount β Specifies the number of attribute/values pairs in the argument list (arglist).
π Resources you can set for the input context π
XmNbackgroundβ Specifies the pixel value for the background color. π¨XmNbackgroundPixmapβ Specifies a pixmap for tiling the background. β¨XmNfontListβ Specifies the font list used by the widget. The input method uses the first occurrence of a font set tagged withXmFONTLIST_DEFAULT_TAG. If no such instance is found, the first font set in the font list is used. And if the font list does not contain a font set at all, a value is not passed toXICSetValues. π¦XmNforegroundβ Specifies the pixel value for the foreground color. πXmNlineSpaceβ Specifies the line spacing used in the pre-edit window. πXmNrenderTableβ Specifies the render table used by the widget. πΈXmNspotLocationβ Specifies the x and y coordinates of the position where text will be inserted in the widget handling input, whose input method style is"OverTheSpot". The y coordinate is the position of the baseline used by the current text line. π
The caller may also pass any other vendor-defined resources to this function. For additional information on the internationalization interface, see the Xlib documentation. π§
π RELATED π
and that's the whole page, bestie!! π this was the XmImSetValues library call manual page β sourced straight from the Xm library call docs, undated and iconic, just the way it came. go update those input context attributes and slay π
β¨π«Ά
π¦ 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