XMDATAFIELDXYTOPOS(3)
β¨ NAME β¨
XmDataFieldXYToPos β bestie, this is a DataField function that grabs the character position nearest to an x and y position π
πΈ SYNOPSIS πΈ
#include <Xm/DataF.h>
XmTextPosition XmDataFieldXYToPos(
Widget widget,
Position x,
Position y);
π¦ DESCRIPTION π¦
Okay so XmDataFieldXYToPos goes and finds the character position that's nearest to the x and y position you hand it β and all of that is measured relative to the upper left corner of the DataField widget. Like, that corner is the origin, the home base, the main character πβ¨
widgetβ the DataField widget ID. Just tell it which widget, bestie.xβ the x position, measured relative to the upper left corner of the widget.yβ the y position, also relative to that same upper left corner.
If you want the complete definition of DataField and all its associated resources, you gotta go read XmDataField(3). No skimming, fr fr π
π₯ RETURN π₯
It returns the character position in the text nearest to the x and y position you specified. This is an integer number of characters from the beginning of the buffer. And heads up β the first character position is 0 (zero). Not 1. Zero. Counting from zero is the vibe, periodt π―
π«Ά RELATED π«Ά
And that's the whole page, angel π β this one's from the XmDataFieldXYToPos(library call) manual, filed under library calls, and it lives right there in the footer, iconic as always. Go forth and slay those character positions ππ
π¦ 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