XMTEXTFIELDXYTOPOS(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’… 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 πŸ’…



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 πŸ’œ