XMTEXTGETINSERTIONPOSITION(3)
π XmTextGetInsertionPosition π
okay bestie, welcome to the manual page for XmTextGetInsertionPosition β a Text function that accesses the position of the insert cursor. it lives in the library call section of the manual, and she is so useful, fr fr. π
β¨ NAME β¨
XmTextGetInsertionPosition β a Text function that accesses the position of the insert cursor π¦
πΈ SYNOPSIS πΈ
#include <Xm/Text.h>
XmTextPosition XmTextGetInsertionPosition(
Widget widget);
like, that's the whole vibe. one function, one argument, no drama. π
π«Ά DESCRIPTION π«Ά
XmTextGetInsertionPosition accesses the insertion cursor position of the Text widget. that's it, that's the whole job, and she does it flawlessly every single time. no cap. π
widgetβ specifies theTextwidget ID. hand her the widget, she tells you where the cursor is at. iconic behaviour honestly. π
for a complete definition of Text and its associated resources, see XmText(3). iykyk β go read that one too, she's got the full lore. πβ¨
π RETURN π
she returns an XmTextPosition value that indicates the state of the XmNcursorPosition resource. π
this is an integer number of characters from the beginning of the text buffer. and listen β the first character position is 0 (zero). not 1, bestie. ZERO. programmers start counting at zero and we respect it. π«‘
so if you're sitting there like "why is my position off by one" β it's not, you just forgot about zero. it happens to the best of us. π
β RELATED β
she's right there in the same family, go say hi. π
okay that's the whole page, you ate that. π this was XmTextGetInsertionPosition from the library call section of the manual β the manpage footer literally just says XmTextGetIn...ionPosition(library call) again, so like, she said her own name twice and honestly? main character energy. go forth and get that insertion position, bestie. πβ¨π§
π¦ 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