XMDATAFIELDPASTE(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’… NAME πŸ’…

XmDataFieldPaste β€” a DataField function that inserts the clipboard selection, bestie. That's the whole vibe.


✨ SYNOPSIS ✨

#include <Xm/DataF.h>
Boolean XmDataFieldPaste(
Widget widget);

🫢 DESCRIPTION 🫢

Okay so here's the tea, bestie: XmDataFieldPaste takes the clipboard selection and drops it right at the insertion cursor of the destination widget. That's it, that's the job. πŸ’–

But wait, there's lore. If XmNpendingDelete is True and the insertion cursor is sitting inside the current selection? Then the clipboard selection replaces the selected text. Iconic behavior, honestly.

This routine calls the widget's XmNvalueChangedCallback and verification callbacks β€” and the verification ones are either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both, no cap. And if both verification callback lists are registered? The procedures of the XmNmodifyVerifyCallback list get executed first, and the resulting data gets passed along to the XmNmodifyVerifyCallbackWcs callbacks. Order matters, periodt. πŸ’…

This routine 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. 🌸

  • widget β€” Specifies the DataField widget ID. That's the one thing you gotta hand it, bestie. πŸŽ€

For the complete definition of DataField and all its associated resources, go read XmDataField(3). Iykyk. πŸ¦‹


πŸ”₯ RETURN πŸ”₯

This function returns False if no transfers take place. Otherwise? It returns True. Simple as that, slay. ✨



And that's the whole page, babes β€” straight outta the XmDataFieldPaste(library call) manual, no date on the tin, just pure library-call energy. Mwah. πŸ’–πŸ’…πŸŽ€