XMDRAGSTART(3)
β¨ 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 theXEventthat triggered the drag operation. This event must be aButtonPressevent.
β οΈ No substitutes, no other event type, periodt. π
arglistβ Specifies the argument list. AnyXmDragContextresources 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. π
π RELATED π
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. πβ¨
π¦ 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