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

πŸ’– XmTextGetSelectionWcs πŸ’–

okay bestie, welcome to the XmTextGetSelectionWcs page from the library call section of the manual β€” yes that's the whole manual name, we're fancy here πŸŽ€


✨ NAME ✨

XmTextGetSelectionWcs β€” a Text function that retrieves the value of a wide character encoded primary selection πŸ¦‹


🌸 SYNOPSIS 🌸

#include <Xm/Text.h>
wchar_t * XmTextGetSelectionWcs(
Widget widget);

πŸ’… DESCRIPTION πŸ’…

okay so XmTextGetSelectionWcs grabs the value of the primary selection, but like… the version that's encoded in a wide character format. she's giving main character energy for real πŸ’«

if literally nothing is selected in the widget, she hands you back a NULL pointer. no selection, no string, that's the vibe check and it failed 😭

⚠️ heads up bestie: the application is responsible for freeing the storage associated with the wide character buffer by calling XtFree. that's on you, not on her. do not ghost that memory, it will come back to haunt you fr fr πŸ’€
  • widget β€” specifies the Text widget ID πŸ‘‘

for a complete definition of Text and its associated resources, go look at XmText(3) β€” that's where the full lore lives πŸ“š


🫢 RETURN 🫢

she returns the wide character string that is associated with the primary selection in the Text widget. that's it, that's the tea ✨



and that's the whole page bestie, no notes 🧚

XmTextGetSelectionWcs(library call) β€” yeah, that footer is literally just the title again, iconic of her honestly πŸ‘‘ so that's the source/version-and-date situation: it's the library call manual, and the date is… the same line, because this page keeps it simple. periodt. πŸ’–πŸŒΈπŸŽ€