XMTRACKINGEVENT(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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:

  1. First it calls XmUpdateDisplay. Refresh era. ✨
  2. Then it grabs the pointer πŸ‘‘
  3. Then it discards succeeding events until either BSelect is released or a key is pressed and then released. Like, it's not listening to your flailing, it's waiting for the moment. πŸ’€
  4. Then it returns the widget or gadget that contains the pointer at that exact moment β€” when BSelect is 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 to widget. Yes/no energy. Should the pointer stay in its lane or not. πŸ™ˆ
  • event_return β€” returns the ButtonRelease or KeyRelease event 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. πŸ•³οΈπŸ˜­


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 πŸ‘‘πŸŒˆβ­