XMTEXTPASTE(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

✨ XmTextPaste ✨

okay bestie, welcome to the XmTextPaste page from the library call manual πŸ’– this is a Text function situation and it is lowkey iconic, let's get into it πŸŽ€


🌸 NAME 🌸

XmTextPaste β€” a Text function that inserts the clipboard selection 🫢


✨ SYNOPSIS ✨

#include <Xm/Text.h>
Boolean XmTextPaste(
Widget widget);

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: XmTextPaste inserts the clipboard selection at the insertion cursor of the destination widget. periodt. ✨

and if XmNpendingDelete is True and the insertion cursor is sitting inside the current selection? then the clipboard selection replaces the selected text. bye old text πŸ‘‹πŸ’€

This routine calls the widget's XmNvalueChangedCallback and verification callbacks β€” either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. fr fr. And 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. order matters bestie, that's just how it is πŸ’…

Also! If the XmNcursorPosition resource is greater than or is the same value as the position where the selection is to be inserted, the XmNmotionVerifyCallback is called. πŸ¦‹

And this routine calls the widget's XmNdestinationCallback procedures with the selection member of the XmDestinationCallbackStruct set to CLIPBOARD and with the operation member set to XmCOPY. no cap πŸ“‹

  • widget β€” specifies the Text widget ID πŸ‘‘

For a complete definition of Text and its associated resources, see XmText(3). go read it, i'll wait πŸ’œ


🌈 RETURN 🌈

This function returns False if no transfers take place. Otherwise, it returns True. simple as that bestie ✨


XmText(3).


lowkey a whole vibe, highkey just a paste function πŸ’–

that's the whole page, bestie β€” XmTextPaste, hanging out in the library call manual, doing its little clipboard thing. πŸ¦‹πŸ’…πŸŒΈ