XMTEXTFIELDPOSTOXY(3)
π XmTextFieldPosToXY π
ok so bestie, welcome to XmTextFieldPosToXY from the library call section, aka the little function that tells you exactly where a character is chillin' inside your TextField. it's giving coordinates, it's giving main character energy, and it's honestly so useful. let's get into it π«Ά
β¨ NAME β¨
XmTextFieldPosToXY β a TextField function that accesses the x and y position of a character position π
πΈ SYNOPSIS πΈ
#include <Xm/TextF.h>
Boolean XmTextFieldPosToXY(
Widget widget,
XmTextPosition position,
Position *x,
Position *y);
π¦ DESCRIPTION π¦
so like, XmTextFieldPosToXY accesses the x and y position β relative to the upper left corner of the TextField widget β of a given character position in the text buffer. that's it, that's the whole vibe β¨
widgetβ specifies the TextField widget ID πpositionβ specifies the character position in the text for which the x and y position is accessed. this is an integer number of characters from the beginning of the buffer, no cap. and the very first character position? that's0. periodt. βxβ specifies the pointer in which the x position is returned. the returned position is the distance from the left side of the widget to the left border of the character. this value is meaningful only if the function returnsTrue. πyβ specifies the pointer in which the y position is returned. the returned position is the distance from the top of the widget to the character's baseline. this value is meaningful only if the function returnsTrue. π§
for a complete definition of TextField and its associated resources, go peek at XmTextField(3). iykyk π
π₯ RETURN π₯
this function returns True if the character position is displayed in the TextField widget. otherwise? it returns False, and literally no x or y value is returned. so don't go reading those pointers like they mean something, bestie β check the return value first. π
π RELATED π
and that's the whole page, babe β XmTextFieldPosToXY(library call), library call section, the whole thing. slay, you read it all, i'm so proud of you πβ¨π
π¦ 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