XMTEXTCOPY(3)
β¨ XmTextCopy β the library-call girlie from the XmText manual π
okay bestie, so this is XmTextCopy, straight out of the library call manual, and she has ONE job: take whatever you've got highlighted (the primary selection) and yeet it onto the clipboard. that's it. that's the whole vibe. π
πΈ NAME πΈ
XmTextCopy β a Text function that copies the primary selection to the clipboard π¦
β¨ SYNOPSIS β¨
#include <Xm/Text.h>
Boolean XmTextCopy(
Widget widget,
Time time);
π DESCRIPTION π
okay so, real talk: XmTextCopy copies the primary selected text to the clipboard. that's the whole plot. no cap. β¨
this routine calls the XmNconvertCallback procedures, and it might do that multiple times (not me calling your callbacks over and over π), with the selection member of the XmConvertCallbackStruct set to CLIPBOARD and with the parm member set to XmCOPY. yes, exactly those values, don't improvise bestie π
widgetβ specifies the Text widget ID π«Άtimeβ specifies the server time at which the selection value is to be modified. this should be the time of the event which triggered this request. one source of a valid time stamp is the functionXtLastTimestampProcessed(). (yes, that's a real function name, i didn't make it up, i would never π)
for a complete definition of Text and its associated resources, see XmText(3). π
π₯ RETURN π₯
so like⦠this function returns False in a whole bunch of situations, and honestly it's giving "situationship":
- the primary selection is
NULLπ - the widget does not own the primary selection
- the function is unable to gain ownership of the clipboard selection
- no data is placed on the clipboard
otherwise? it returns True. slay. π
π RELATED π
that's the whole page babes π courtesy of the XmTextCopy(library call) manual β library call energy, living her best life, no date on the tin but she's iconic anyway. mwah πβ¨π¦
π¦ 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