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

πŸ’– XmTextShowPosition πŸ’–

okay bestie, welcome to the XmTextShowPosition page β€” it's a library call from the Xm fam, and it is genuinely so useful, no cap. it's a Text function that forces text at a given position to be displayed πŸ¦‹ like, you point at a spot, and the widget shows you that spot. main character energy fr fr.


✨ SYNOPSIS ✨

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

🌸 DESCRIPTION 🌸

so XmTextShowPosition forces the text at the specified position to be displayed. that's the whole gig πŸ’…

πŸŽ€ heads up bestie: if the XmNautoShowCursorPosition resource is True, then the application should also set the insert cursor to this position. don't skip that part, it's giving teamwork.

here's the tea on the args:

  • widget β€” Specifies the Text widget ID. yeah, you gotta tell it which widget, obviously 🫢
  • position β€” Specifies the character position to be displayed. This is an integer number of characters from the beginning of the text buffer. The first character position is 0 (zero). not one, bestie, zero. index-from-zero girlies rise up ✨

if a navigator exists, this function uses the XmQTnavigator trait to update the horizontal navigator's value. lowkey iconic how it just does that for you 🌈

for a complete definition of Text and its associated resources, see XmText(3). go read it, i'll wait 🧚



k that's the whole page, you ate it πŸ’– mwah β€” this was XmTextShowPosition(library call), straight from the Xm library docs, footer and all. bye bestie, go make some text visible πŸ¦‹β­