XMTEXTSETSTRING(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 🌸

XmTextSetString β€” A Text function that sets the string value. Bestie, it's from the (library call) manual, and it's literally the "set the whole string, no cap" function. πŸ’…

✨ SYNOPSIS ✨

       #include <Xm/Text.h>
       void XmTextSetString(
       Widget widget,
       char * value);

πŸ’– DESCRIPTION πŸ’–

Okay so XmTextSetString sets the string value of the Text widget. The way it does that? It calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. πŸ‘€

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. Order matters, fr fr β€” first list runs, then its resulting data goes to the Wcs callbacks. ✨

This function also sets the insertion cursor position to the beginning of the string and calls the widget's XmNmotionVerifyCallback callbacks. Cursor said "back to the start, periodt." πŸ’…

  • widget β€” Specifies the Text widget ID.
  • value β€” Specifies the character pointer to the string value and places the string into the text edit window.

For a complete definition of Text and its associated resources, see XmText(3). πŸ¦‹

XmText(3) and XmTextSetStringWcs(3). That's the whole squad. πŸ’–


XmTextSetString(library call) β€” that's the footer source/manual section, and it's iconic. πŸŽ€