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

XmTextSetInsertionPosition β€” a Text function that sets the position of the insert cursor πŸ’…


🌸 SYNOPSIS 🌸

#include <Xm/Text.h>
void XmTextSetInsertionPosition(
Widget widget,
XmTextPosition position);

πŸŽ€ DESCRIPTION πŸŽ€

okay so bestie, XmTextSetInsertionPosition sets the insertion cursor position of the Text widget. that's the whole vibe. it just... moves the little blinking cursor, no big deal, except it IS a big deal because this routine also calls the widget's XmNmotionVerifyCallback callbacks if the insertion cursor position changes. so if the cursor actually moves somewhere new, those callbacks get pinged. if nothing changed? they stay quiet. iconic behaviour honestly. πŸ¦‹

  • widget β€” specifies the Text widget ID 🫢
  • position β€” specifies the position of the insertion cursor. this is an integer number of characters from the beginning of the text buffer. and the very first character position is 0 (zero), not 1, because we count from zero in this house. πŸ’€

for a complete definition of Text and its associated resources, see XmText(3). go read it, it's giving main character energy. πŸ“–βœ¨



k that's the whole page babes πŸ’œ this one's filed under library call, straight outta the Xm library (Motif era, the OGs), and the footer was literally just the title again β€” XmTextSetIn...ionPosition(library call) β€” because the man page template was feeling a lil lazy. no date given, so no date invented. periodt. πŸ’…πŸŒΈ