XMTEXTFIELDPASTE(3)
π XmTextFieldPaste π
okay bestie, welcome to XmTextFieldPaste β a TextField function that inserts the clipboard selection β¨ like, it's THE clipboard-paste girlie for your TextField widget and she's lowkey iconic for it π
πΈ SYNOPSIS πΈ
#include <Xm/TextF.h>
Boolean XmTextFieldPaste(
Widget widget);
β¨ DESCRIPTION β¨
So here's the vibe: XmTextFieldPaste inserts the clipboard selection at the insertion cursor of the destination widget. That's it, that's the whole job, and she does it flawlessly π
But wait, there's a plot twist π β if XmNpendingDelete is True and the insertion cursor is inside the current selection, then the clipboard selection replaces the selected text. bye bye old text, hello new text, no cap π«Ά
This routine also calls the widget's XmNvalueChangedCallback and the verification callbacks β either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or literally both of them, she's thorough like that. And if both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list get executed first, and then the resulting data is passed along to the XmNmodifyVerifyCallbackWcs callbacks. Order matters, bestie, that's the way that works π
She also calls the widget's XmNdestinationCallback procedures, with the selection member of the XmDestinationCallbackStruct set to CLIPBOARD and the operation member set to XmCOPY. And if the XmNcursorPosition resource is greater than or is the same value as the position where the selection is to be inserted, then XmNmotionVerifyCallback gets called. yeah. she keeps receipts π
widgetβ Specifies the TextField widget ID. just hand her the widget, that's all she needs π«Ά
For a complete definition of TextField and its associated resources, go check out XmTextField(3) β she's the main character of that page π
π« RETURN π«
This function returns False if no transfers take place π β like, nothing happened, awkward. Otherwise? She returns True and she ate π₯
π RELATED π
XmTextField(3). β go read her, she's the blueprint π
okay that's the whole page, bestie!! this was XmTextFieldPaste(library call) from the library call manual, and if you see that same XmTextFieldPaste(library call) footer floating around at the bottom, that's just her signature, she signs her work π mwah, go paste something iconic π¦β¨π
π¦ 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