XMTRACKINGEVENT(3)
π XmTrackingEvent π
okay bestie, so this one's from the XmTrackingEvent(library call) manual and it's literally the girl behind context help β she makes you pick something, on purpose, one (1) time. modal interaction core. π―
β¨ NAME β¨
XmTrackingEvent β a Toolkit function that provides a modal interaction π
π SYNOPSIS π
#include <Xm/Xm.h>
Widget XmTrackingEvent(
Widget widget,
Cursor cursor,
Boolean confine_to,
XEvent *event_return);
π¦ DESCRIPTION π¦
XmTrackingEvent is giving modal interface for selection of a component, and no cap, that's the whole vibe. It's intended to support context help β you know, the lil "click the thing you're confused about" moment. π«Ά
So here's the sequence, bestie, in order:
- First it calls
XmUpdateDisplay. Refresh era. β¨ - Then it grabs the pointer π
- Then it discards succeeding events until either
BSelectis released or a key is pressed and then released. Like, it's not listening to your flailing, it's waiting for the moment. π - Then it returns the widget or gadget that contains the pointer at that exact moment β when
BSelectis released, or when a key is released β and it ungrabs the pointer. Free at last. ποΈ
πΈ The Arguments πΈ
widgetβ the widget ID of a widget to use as the basis of the modal interaction. Read: the widget the interaction has to happen inside. Usually a top-level shell. It's the designated arena, the containment zone, the group chat you can't leave. πcursorβ the cursor used for the pointer during the interaction. It's a standard X cursor name, so use a real one, not a vibe. π±οΈconfine_toβ specifies whether or not the cursor should be confined towidget. Yes/no energy. Should the pointer stay in its lane or not. πevent_returnβ returns theButtonReleaseorKeyReleaseevent that causes the function to return. So you get receipts for what ended the interaction. π©
β RETURN β
Returns the widget or gadget that contains the pointer when BSelect is released or a key is released. π
And if no widget or gadget contains the pointer? It returns NULL. Not a widget. Nothing. The void. π³οΈπ
π₯ RELATED π₯
XmTrackingLocate(3)β her sister, same energy, different job. iykyk π
anyway that's the whole page bestie, go forth and track events responsibly πβ¨ππ¦πΈπ π«Ά
this has been the XmTrackingEvent(library call) page, filed under library call, brought to you by the fine folks who write library calls β mwah, periodt ππβ
π¦ 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