XMGETDRAGCONTEXT(3)
π XmGetDragContext π
okay bestie, welcome to the XmGetDragContext page from the library call manual β yes, the whole thing lives under XmGetDragContext(library call), and no, that is not a typo, that's just how the docs roll. π«Ά
β¨ NAME β¨
XmGetDragContext β a Drag and Drop function that retrieves the DragContext widget ID associated with a timestamp. literally its whole job. π
πΈ SYNOPSIS πΈ
#include <Xm/DragC.h>
Widget XmGetDragContext(
Widget refwidget,
Time timestamp);
π¦ DESCRIPTION π¦
so XmGetDragContext hands you back the widget ID of the active DragContext that's associated with a given display and timestamp. periodt. π
and here's the tea: a timestamp is what uniquely identifies which DragContext is active when more than one drag and drop transaction has been initiated on a display. like, multiple drags fighting for attention? the timestamp is the vibe check that sorts them out. β¨
if the timestamp you specified matches a timestamp processed between the start and finish of a single drag and drop transaction, the function returns the corresponding DragContext ID. chef's kiss. π
refwidgetβ this is the ID of the widget that the routine uses to figure out which display you mean. the function returns the ID of the DragContext associated with the display value passed by this widget. it's giving "you tell me the widget, i'll tell you the display." πͺtimestampβ a timestamp. that's it. that's the whole description. β°
for a complete definition of DragContext and all its associated resources, go peek at XmDragContext(3). iykyk. π
β RETURN β
it returns the ID of the DragContext widget that is active for the specified timestamp. π
otherwise? it returns NULL if no active DragContext is found. not me getting ghosted by a null pointer ππ
π₯ RELATED π₯
and that's the whole page, bestie β no cap, every flag, arg and return value accounted for. π this was XmGetDragContext(library call), straight from the library call manual, mwah π stay slay, go read your docs. πβ¨
π¦ 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