XMTEXTGETSELECTIONPOSITION(3)
π 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 is0(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 is0(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 πΈ
β¨ RELATED β¨
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) πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms