XMDRAGSTART(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

✨ XmDragStart β€” library call ✨

Okay bestie, gather round. This is the manual page for XmDragStart, a Drag and Drop function that initiates a drag and drop transaction. It's giving "let's start the drag, no cap." πŸ’…


🌸 NAME 🌸

XmDragStart β€” A Drag and Drop function that initiates a drag and drop transaction. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Xm/DragDrop.h>
Widget XmDragStart(
Widget widget,
XEvent *event,
ArgList arglist,
Cardinal argcount);

πŸ’– DESCRIPTION πŸ’–

XmDragStart initiates a drag operation. This routine returns the DragContext widget that it initializes for the associated drag transaction. The toolkit is responsible for freeing the DragContext when the drag and drop transaction is complete. So like, you don't free it, bestie β€” the toolkit handles that. πŸ‘‘

Here's what the arguments are doing:

  • widget β€” Specifies the ID of the smallest widget and/or gadget that encloses the source elements selected for a drag operation. Basically the tightest container around the stuff you're dragging.
  • event β€” Specifies the XEvent that triggered the drag operation. This event must be a ButtonPress event.
⚠️ No substitutes, no other event type, periodt. πŸ’€
  • arglist β€” Specifies the argument list. Any XmDragContext resources not specified in the argument list are obtained from the resource database or are set to their default values. So if you leave stuff out, it gets looked up or defaulted. Slay. ✨
  • argcount β€” Specifies the number of attribute/value pairs in the argument list (arglist). That's the count, bestie. πŸ”’

For a complete definition of DragContext and its associated resources, see XmDragContext(3). 🫢


⭐ RETURN ⭐

Returns the ID of the DragContext widget that controls this drag and drop transaction. Returns NULL if the drag cannot be initiated. So if it fails, you get NULL, not a vibe. 😭


XmDragCancel(3) and XmDragContext(3). Go read those too, iykyk. πŸ’œ


Sign-off from the library call manual: XmDragStart. No version or date was printed on this page, just the manual section. Stay iconic, bestie. πŸ’–βœ¨