XMTEXTFIELDGETSELECTION(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 ✨

XmTextFieldGetSelection β€” bestie, it's a TextField function that grabs the value of the primary selection for you πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/TextF.h>
char * XmTextFieldGetSelection(
Widget widget);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so. XmTextFieldGetSelection goes and retrieves the value of the primary selection. that's the whole job. it's giving "hand me what's selected" energy πŸ’…

if nothing is selected in the widget? it returns a NULL pointer. no text, no string, no drama. periodt.

⚠️ and listen β€” you are the one responsible for freeing the storage associated with that string. like, the application has to call XtFree on it. not me, not the widget, not the universe. you. don't forget or that's a memory leak and we don't do those πŸ™ˆ
  • widget β€” specifies the TextField widget ID 🫢

and for a complete definition of TextField and all its associated resources, go peek at XmTextField(3). iykyk ✨


🌸 RETURN 🌸

returns a character pointer to the string that's associated with the primary selection πŸ‘‘



and that's the whole page, bestie πŸ’œ this one's XmTextFieldGetSelection from the library call section of the manual β€” mwah, go slay your selections πŸŽ€πŸ¦‹βœ¨