XMIMSETFOCUSVALUES(3)
π XmImSetFocusValues π
okay bestie, so this one is a library call from the X/Motif crew β XmImSetFocusValues, an input manager function that notifies an input manager that a widget has received input focus and updates the input context attributes. two jobs, one function, she's multitasking π
β¨ SYNOPSIS β¨
#include <Xm/XmIm.h>
void XmImSetFocusValues(
Widget widget,
ArgList arglist,
Cardinal argcount,
);
πΈ DESCRIPTION πΈ
so XmImSetFocusValues slides into the input manager's DMs to say "hey, this widget just got input focus π". and while she's there, she also updates the attributes of the input context associated with that widget. the focus window for the XIC gets set to the window of the widget. that's the whole vibe.
the arglist argument is a list of attribute/value pairs for the input context. this function passes those attributes and values straight to XICSetValues.
π«Ά bestie please listen: the caller of this routine should pass in only those values that have changed since the last call to any of these functions:XmImSetValues,XmImSetFocusValues,XmImVaSetValues, orXmImVaSetFocusValues. don't be out here re-sending the whole thing, that's not the assignment. π
for a list of associated resources, go read the description in the XmImSetValues(3) reference page. she has the receipts.
also β if the previous parameters for the widget's XIC do not allow the previously registered XIC to be reused, that XIC will be unregistered, and a new one will be created and registered with the widget. glow-up era β¨. and note that sharing of data is preserved. no cap.
the arguments, one by one π
widgetβ Specifies the ID of the widget registered with the input manager.arglistβ Specifies the list of attribute/value pairs to be passed toXICSetValues. See the description in theXmImSetValues(3)man page for a description of resources.argcountβ Specifies the number of attribute/values pairs in the argument list (arglist).
π¦ one lil heads-up
Note that the Text and TextField widgets call theXmImSetFocusValuesfunction when they receive focus. Therefore, further calls to theXmImSetFocusValuesfunction for these widgets are unnecessary. like, they already handled it, don't double-text. π
π RELATED π
and that's the tea, bestie π this whole page lives under the XmImSetFocusValues(library call) banner in the X/Motif manual set β a library call, through and through, iconic as always π mwah, go set some focus β¨π
π¦ 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