XMTEXTFIELDXYTOPOS(3)
π XmTextFieldXYToPos β bestie edition β¨
okay so real talk, this is a library call from the <Xm/TextF.h> era, and it's called XmTextFieldXYToPos. literally what it does is: you give it an x and a y, and it tells you which character in the text is nearest to that spot. that's it. that's the whole vibe. π
β¨ NAME β¨
XmTextFieldXYToPos β a TextField function that accesses the character position nearest an x and y position π¦
πΈ SYNOPSIS πΈ
#include <Xm/TextF.h>
XmTextPosition XmTextFieldXYToPos(
Widget widget,
Position x,
Position y);
π DESCRIPTION π
okay so here's the tea, bestie π« β XmTextFieldXYToPos accesses the character position nearest to the specified x and y position, relative to the upper left corner of the TextField widget. upper left corner is the origin, that's the whole map. no cap.
widgetβ Specifies the TextField widget ID πxβ Specifies the x position, relative to the upper left corner of the widget.yβ Specifies the y position, relative to the upper left corner of the widget.
and if you want the complete definition of TextField and all its associated resources (like, the full lore β¨), go see XmTextField(3). it's giving required reading.
π¦ RETURN π¦
Returns the character position in the text nearest the x and y position specified. This is an integer number of characters from the beginning of the buffer. and the first character position is 0 (zero) β yes bestie, zero-indexed, we love to see it π
π RELATED π
XmTextFieldXYToPos (library call) β that's the source/version tag and the date stamp that lives down at the bottom of the original page, and honestly it deserved a little shoutout, so here it is π«Ά stay hydrated, go read your resources, periodt π
π¦ 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