XMTEXTFIELDGETSELECTIONPOSITION(3)
π XmTextFieldGetSelectionPosition(3) π
okay bestie, so this one lives in the library call section of the manual and its full government name is XmTextFieldGetSelectionPosition(3) β say that five times fast, I dare you. it's giving "long name, tiny job" energy and honestly? we respect it. πΈ
β¨ NAME β¨
XmTextFieldGetSelectionPosition β a TextField function that accesses the position of the primary selection π
π SYNOPSIS π
#include <Xm/TextF.h>
Boolean XmTextFieldGetSelectionPosition(
Widget widget,
XmTextPosition *left,
XmTextPosition *right);
like, yes, it returns a Boolean, and yes, it takes three whole arguments. main character behavior fr fr. π
π¦ DESCRIPTION π¦
so XmTextFieldGetSelectionPosition goes in and accesses the left and right position of the primary selection in the text buffer of the TextField widget. that's it. that's the whole vibe check. β¨
widgetβ specifies the TextField 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 listen, the first character position is0(zero). zero-indexed girlies, we know. πrightβ specifies the pointer in which the position of the right boundary of the primary selection is returned. this is an integer number of characters from the beginning of the buffer. and yeah, the first character position is0(zero) here too. consistency slay. π
for a complete definition of TextField and its associated resources, see XmTextField(3). iykyk. π
π RETURN π
this function returns True if the widget owns the primary selection; otherwise, it returns False. no in-between, no "maybe", just a clean little boolean. periodt. π
π₯ RELATED π₯
not me writing a whole love letter to a selection position getter but here we are. π no cap, every detail above is exactly as the original says it β don't come for me if you skip the 0 (zero) part, bestie. π
XmTextFiel...ionPosition β straight from the library call section, no version or date drama attached, just vibes. bye bestie, go get that selection position. ππ¦β¨
π¦ 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