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

πŸ’– XmTextGetSelectionPosition πŸ’–

ok so bestie, we're doing a library call today β€” the whole manual name is XmTextGetSe...ionPosition(library call) and yes the truncation is giving "she's mysterious, she's elusive," we love her for it πŸŽ€


✨ NAME ✨

XmTextGetSelectionPosition β€” a Text function that accesses the position of the primary selection πŸ¦‹


✨ SYNOPSIS ✨

#include <Xm/Text.h>
Boolean XmTextGetSelectionPosition(
Widget widget,
XmTextPosition *left,
XmTextPosition *right);

✨ DESCRIPTION ✨

so like, XmTextGetSelectionPosition accesses the left and right position of the primary selection in the text buffer of the Text widget. that's it, that's the whole vibe πŸ’…

  • widget β€” specifies the Text widget ID 🫢
  • left β€” specifies the pointer in which the position of the left boundary of the primary selection is returned. this is an integer number of characters from the beginning of the buffer. and bestie, listen: the first character position is 0 (zero). not 1. zero. index-from-zero girlies stay winning ✨
  • right β€” specifies the pointer in which the position of the right boundary of the primary selection is returned. also an integer number of characters from the beginning of the buffer. also the first character position is 0 (zero). consistency? she invented it πŸ’€

for a complete definition of Text and its associated resources, see XmText(3). go read it, it's giving required reading πŸ“š


✨ RETURN ✨

this function returns True if the widget owns the primary selection; otherwise, it returns False. that's the whole tea β˜• true or false, no in-between, no situationship 🌸



not me being obsessed with a function that literally just tells you where the selection starts and ends. lowkey iconic, highkey useful. periodt πŸ’œ

okay that's the page!! it's the XmTextGetSe...ionPosition(library call) manual, and yes that full fancy title really is what sits at the bottom too β€” same library call energy top and bottom, symmetric queen πŸ‘‘ mwah, love u, go read XmText(3) πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά