XMTEXTSETSTRINGWCS(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 πŸ’–

XmTextSetStringWcs β€” the Text function that sets a wide character string value, bestie πŸ’…


✨ SYNOPSIS ✨

#include <Xm/Text.h>
void XmTextSetStringWcs(
Widget widget,
wchar_t *wcstring);

🌸 DESCRIPTION 🌸

okay so XmTextSetStringWcs sets the wide character string value of the Text widget. that's literally the whole job and she does it flawlessly, no cap 🫢

but the plot thickens, because this routine is not just quietly stuffing a string in there β€” it calls the widget's XmNvalueChangedCallback and verification callbacks, which are either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both 😭 so if you registered both verification callback lists, the procedures of the XmNmodifyVerifyCallback list run first, and the resulting data gets passed on to the XmNmodifyVerifyCallbackWcs callbacks. order matters, she's very organized ✨

and because she's extra in the best way, this function also sets the insertion cursor position to the beginning of the string πŸŽ€ and calls the widget's XmNmotionVerifyCallback callbacks. icon behavior, truly πŸ‘‘

  • widget β€” Specifies the Text widget ID πŸ¦‹
  • value β€” Specifies the wide character string value 🌸
side note bestie: for a complete definition of Text and its associated resources, see XmText(3) πŸ’œ

XmText(3) and XmTextSetString(3) β€” go read those too, iykyk πŸ’…


and that's the whole page, babe ✨ this one's straight out of the XmTextSetStringWcs(library call) manual, living in the library call section (that's section 3, periodt) πŸ’– take care of your Text widget and she'll take care of you 🫢🌈⭐