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

✨ XmTextRemove ✨

okay bestie, gather round, because this is the little Text widget function that just deletes your primary selection. iconic behavior, honestly. it's from the <Xm/Text.h> library-call girlies, and yes, it is serving utility.


πŸŽ€ NAME πŸŽ€

XmTextRemove β€” a Text function that deletes the primary selection. yes, that's literally her whole job and she ate.


πŸ’… SYNOPSIS πŸ’…

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

πŸ¦‹ DESCRIPTION πŸ¦‹

so XmTextRemove deletes the primary selected text. periodt. if there is a selection, this routine also calls the widget's XmNvalueChangedCallback and verification callbacks β€” either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. not me being thorough πŸ’€

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. so it's giving "first one, then the other, data handoff, no cap." this function may also call the XmNmotionVerifyCallback callback. she's social like that.

  • widget β€” specifies the Text widget ID. that's the one, bestie.

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 the primary selection is NULL or if the widget does not own the primary selection. otherwise, it returns True. so like... no selection, no primary-ownership? False. she's not gonna pretend. simple as that.



lowkey a tiny function, highkey important. don't sleep on her.

this has been your girl XmTextRemove(library call) β€” mwah, from the XmTextRemove(library call) manual, page footer and all, no date given but the vibe is timeless. 🫢✨