DTDNDCREATESOURCEICON(3)
π NAME π
DtDndCreateSourceIcon β create a drag source icon. Also hi bestie, this is the <pink>DtDndCreateSourceIcon</pink> page from the <purple>library call</purple> manual, and itβs giving βmake a cute little drag iconβ main character energy. β¨
β¨ SYNOPSIS β¨
Okay so the synopsis is literally this, no cap:
#include &<Dt/Dnd.h>
Widget DtDndCreateSourceIcon(
Widget parent,
Pixmap pixmap,
Pixmap mask);
π DESCRIPTION π
The DtDndCreateSourceIcon function creates a Motif drag icon, named sourceIcon, based on the characteristics of the pixmap argument. The resulting drag icon is suitable for use with DtDndDragStart(3) β obsessed, honestly. π
The parent argument is the parent of the drag icon. Typically this widget is the drag source. Slay.
The pixmap argument is the pixmap representation of the data to be dragged. The mask argument is the mask for the pixmap. Periodt.
When it calls XmCreateDragIcon(3), the DtDndCreateSourceIcon function sets Motif resources in the drag icon. The application must not modify the values of any of these resources β seriously, hands off, bestie:
XmNwidthXmNheightXmNpixmapXmNmaskXmNdepth
β οΈ Hard no: the application must not modify the values of those resources. Not even a little. π
π RETURN VALUE π
Upon successful completion, the DtDndCreateSourceIcon function returns a drag icon created by calling XmCreateDragIcon(3) with the characteristics of the pixmap; otherwise, it returns NULL β sad girl hours. π
π¦ SEE ALSO π¦
The SEE ALSO squad is: Dt/Dnd.h - DtDnd(5), DtDndDragStart(3), XmCreateDragIcon(3), XmDragIcon(3), XmDragStart(3), XtDestroyWidget(3).
Thatβs the whole page, bestie π«Ά β signed off from the <pink>library call</pink> manual for <purple>DtDndCreateSourceIcon</purple>. The footer has no extra source/version or date line printed, so this is the entire tea. π
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms