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

okay bestie, welcome to the XmTextPosition(library call) page β€” it's giving β€œwhere exactly are we in this text string?” and honestly? iconic. πŸ’…

✨ NAME ✨

XmTextPosition β€” Data type for a character position within a text string


πŸ“œ SYNOPSIS πŸ“œ

#include <Xm/Xm.h>

πŸ’– DESCRIPTION πŸ’–

XmTextPosition is an integer data type, no cap. It holds a character's position within a text string for Text and TextField. ✨

okay so here's the main character detail: an XmTextPosition value conceptually points to the gap between two characters. Not the character itself β€” the little in-between space, iykyk. 🫢

For example, consider a text string consisting of N characters. A value of 0 refers to the position immediately prior to the first character. A value of 1 refers to the position in between the first and second characters. A value of N refers to the position immediately following the last character. Therefore, the text string of N characters actually contains N + 1 positions. math ate, periodt. πŸ”₯


  • XmText(3) β€” go read that one next, bestie. πŸ’œ

and that's the whole XmTextPosition(library call) page β€” the footer is just the library call label, with no source/version/date line to report. bye bestie πŸ’–βœ¨