XMDATAFIELDCUT(3)
π XmDataFieldCut π
okay bestie, welcome to the XmDataFieldCut page β it's a library call, it lives in the DataField family, and it is genuinely so useful. sit with me, grab a lil snack π, and let's get into it.
β¨ NAME β¨
XmDataFieldCut β a DataField function that copies the primary selection to the clipboard and deletes the selected text π
πΈ SYNOPSIS πΈ
#include <Xm/DataF.h>
Boolean XmDataFieldCut(
Widget widget,
Time time);
π DESCRIPTION π
so here's the tea β: XmDataFieldCut copies the primary selected text to the clipboard, and then β and this is the part people forget β it deletes the primary selected text. cut means cut, babe. βοΈ
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. And if both verification callback lists are registered? Then the procedures of the XmNmodifyVerifyCallback list are executed first, and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. order matters, iykyk π«Ά
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. And if the transfer is successful, this routine then calls the XmNconvertCallback procedures for the CLIPBOARD selection and the DELETE target. slay. β¨
widgetβ Specifies the DataField widget ID. that's your girl, the widget in question π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. like, the actual moment of the click, not vibes-based guessing β°
For a complete definition of DataField and its associated resources, see XmDataField(3). π
π¦ RETURN π¦
This function returns False if any of these happen, and I need you to read them all, bestie, no skimming π:
- 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. π
fr fr, thatFalselist is the whole vibe check. if any one of those four things goes sideways, you getFalseback and nothing cut. no cap.
π RELATED π
okay that's the page!! π it was filed under XmDataFieldCut(library call), and that's the same signature on the sign-off too β so consider this your cute lil footer: XmDataFieldCut(library call), mwah, love u, go cut some text π ππ¦
π¦ 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