XMDROPSITEREGISTER(3)
π XmDropSiteRegister π
okay bestie, gather round, because we're talking about XmDropSiteRegister from the library call girlies β a Drag and Drop function that literally identifies a drop site and assigns the resources that specify its behavior. no cap. π
β¨ NAME β¨
XmDropSiteRegister β a Drag and Drop function that identifies a drop site and assigns resources that specify its behavior π¦
β¨ SYNOPSIS β¨
#include <Xm/DragDrop.h>
void XmDropSiteRegister(
Widget widget,
ArgList arglist,
Cardinal argcount);
β¨ DESCRIPTION β¨
so like, XmDropSiteRegister identifies the widget (or gadget!!) you hand it as a drop site, and it sets the resource values that define that drop site's whole behavior. main character energy fr fr. π
and here's the cute part: for any resources you didn't specify in the argument list, the routine just assigns default values. it's giving "we got you, don't stress." π
β οΈ heads up bestie: the toolkit generates a warning message if a drop site gets registered withXmNdropSiteActivityset toXmDROP_SITE_ACTIVEand theXmNdropProcresource isNULL. so likeβ¦ don't do that. π
also, nesting rules, because of course there are nesting rules:
- if the drop site is a descendant of a widget that's registered as a drop site, then the
XmNdropSiteTyperesource of the ancestor drop site must be specified asXmDROP_SITE_COMPOSITE. - the ancestor must be registered before the descendant. order matters, no skipping. π«Ά
- the drop site gets stacked above all other sibling drop sites already registered. iconic, honestly. β¨
πΈ the arguments πΈ
widgetβ specifies the ID of the widget to be registered.arglistβ specifies the argument list.argcountβ specifies the number of attribute/value pairs in the argument list (arglist).
for a complete definition of DropSite and all its associated resources, go read XmDropSite(3). iykyk. π
β¨ RELATED β¨
XmDisplay(3)XmDropSite(3)XmDropSiteEndUpdate(3)XmDropSiteStartUpdate(3)XmDropSiteUpdate(3)XmDropSiteUnregister(3)XmScreen(3)
and that's the whole vibe check, bestie π§ this was XmDropSiteRegister(library call), brought to you by the source/version + date energy at the bottom of the page β mwah, slay, 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