XMTEXTCUT(3)
β¨ XmTextCut β¨
okay bestie, so this one is a library call and honestly? it's giving "copy + delete in one glow-up." π
πΈ NAME πΈ
XmTextCut β a Text function that copies the primary selection to the clipboard and deletes the selected text π
π¦ SYNOPSIS π¦
#include <Xm/Text.h>
Boolean XmTextCut(
Widget widget,
Time time);
π DESCRIPTION π
So XmTextCut takes the primary selected text, copies it to the clipboard, and then deletes the primary selected text. yes, both. it's an overachiever, we love that for it. π
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. and here's the little order-of-operations tea: if both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first, and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. so Wcs gets the hand-me-down data, no cap.
This routine also calls the XmNconvertCallback procedures β possibly multiple times β with the selection member of the XmConvertCallbackStruct set to CLIPBOARD and with the parm member set to XmMOVE. then, if the transfer is successful, this routine calls the XmNconvertCallback procedures for the CLIPBOARD selection and the DELETE target. iconic chain reaction, fr fr. π₯
widgetβ Specifies the Text widget ID. like, which Text widget are we doing this to, bestie? that one. π«timeβ Specifies the server time at which the selection value is to be modified. this should be the time of the event that triggered this request. one source of a valid time stamp is the functionXtLastTimestampProcessed(). πβ¨
For a complete definition of Text and its associated resources, see XmText(3).
π«Ά RETURN π«Ά
This function returns False if:
- 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 if no data is placed on the clipboard π
Otherwise, it returns True. slay. β
π RELATED π
and that's the whole page, bestie β it's from the XmTextCut(library call) manual, 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