XMIMSETXIC(3)
π XmImSetXIC π
okay bestie, so this one's from the library call section of the XmIm crew β it's XmImSetXIC, and she's the input manager girlie whose whole job is registering an existing XIC with a widget. no cap. π«Ά
β¨ NAME β¨
XmImSetXIC β an input manager function that registers an existing XIC with a widget. that's it, that's the girl. π
πΈ SYNOPSIS πΈ
#include <Xm/XmIm.h>
XIC XmImSetXIC(
Widget widget,
XIC xic);
π¦ DESCRIPTION π¦
so like, XmImSetXIC registers the specified X Input Context (XIC) with widget. and here's the tea π: any existing XIC that was already registered for widget? unregistered. gone. not invited to the party anymore. and then the new XIC that got registered for widget is returned to you. iconic behavior honestly.
π¨ important lore alert: if xic was not created byXmImGetXICorXmImRegister, then it will not be subject to closing activities when it has no widgets registered with it. like, she's not on the official list, so nobody's gonna do the closing ritual for her. just so you know. π
widgetβ the ID of a widget for which a new Input Context is to be registered. she's the main character getting a fresh XIC assigned. β¨xicβ the Input Context to be registered with the widget. and plot twist: if xic isNULL, the function returns the current XIC used by widget. so passingNULLis basically asking "who's the XIC right now?" β lowkey a vibe check. π₯
π RETURN π
returns the new XIC registered for widget. π
π bestie listen: the application is responsible for freeing the returned XIC. that's on you, not on her. to free the XIC, call XmImFreeXIC. don't just leave it hanging, that's not the move. periodt.
π RELATED π
go read those too, iykyk. π§
and that's the whole page, fr fr β signed off from the XmImSetXIC library call corner of the manual, version-flavored and dated just like the original footer said. mwah. π
π¦ 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