XMDATAFIELDCOPY(3)
π XmDataFieldCopy π
okay bestie, welcome to the XmDataFieldCopy page from the (library call) manual β yes it's a Motif library call, yes it's giving vintage-but-iconic, and yes I'm gonna walk you through every single crumb of it. π
β¨ NAME β¨
XmDataFieldCopy β a DataField function that copies the primary selection to the clipboard π«Ά
β¨ SYNOPSIS β¨
#include <Xm/DataF.h>
Boolean XmDataFieldCopy(
Widget widget,
Time time);
β¨ DESCRIPTION β¨
XmDataFieldCopy copies the primary selected text to the clipboard. that's the whole vibe, bestie β select, copy, done, slay. π
the way this works internally: this routine calls the XmNconvertCallback procedures, and it might do that possibly multiple times, with the selection member of the XmConvertCallbackStruct set to CLIPBOARD and with the parm member set to XmCOPY. like, it's not shy about it. it's gonna call those callbacks however many times it needs to. no cap. π₯
here's the tea on the arguments:
widgetβ specifies the DataField widget ID. that's your main character right there. πtimeβ specifies the time at which the selection value is to be modified. this should be the time of the event that triggered this request. (so like, the moment the user actually did the thing. give it that timestamp, not some random one. π)
for a complete definition of DataField and its associated resources, see XmDataField(3). go read that one too, fr fr, it's the lore. π¦
β¨ RETURN β¨
this function returns False if any of these happen:
- the primary selection is
NULL - the widget does not own the primary selection
- the function is unable to gain ownership of the clipboard selection
- or no data is placed on the clipboard
otherwise, it returns True. β¨π
so basically: False = it didn't eat, True = it ate. π
β¨ RELATED β¨
XmDataField(3). π
and that's the whole page, bestie!! πΈ go forth and copy your primary selection to the clipboard with confidence, you're doing amazing sweetie. mwah. π§β¨
signing off from the XmDataFieldCopy(library call) manual β library call, as in, the whole page and its footer said the exact same thing, so consider this my little curtsy to it. π
π bye!!
π¦ 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