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

okay so bestie, welcome to the XmTextPasteLink page β€” it's a Text function that inserts a link to the clipboard selection. yes, a link, not the actual stuff. we're being fancy today πŸ’… (it lives in the library call section of the manual, iykyk πŸŽ€)


🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: XmTextPasteLink inserts a link to the clipboard selection at the insertion cursor. that's the whole main character move. ✨

But plot twist β€” it does NOT do the work itself. nope. it calls the widget's XmNdestinationCallback procedures, with the selection member of the XmDestinationCallbackStruct set to CLIPBOARD and with the operation member set to XmLINK. 🫢

Not me being the messenger β€” the Text widget itself performs no transfers. the XmNdestinationCallback procedures are the ones responsible for inserting the link to the clipboard selection and for taking any related actions. so like, if nothing happens, that's on the callbacks, fr fr 😭

widget β€” specifies the Text widget ID. that's it, that's the whole input 🌈

For a complete definition of Text and its associated resources, see XmText(3). go read it, it's giving required reading πŸ“š


πŸ’– RETURN πŸ’–

This function returns False if no transfers take place. Otherwise, it returns True. so either it ate, or it didn't πŸ’€



lowkey iconic, highkey a one-job function. no cap, that's the entire page. πŸ’œ

signing off from the XmTextPasteLink(library call) manual page β€” library call energy, version and date included, periodt πŸŽ€πŸ’…βœ¨