XMDATAFIELDXYTOPOS(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

✨ 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 πŸ’―



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 πŸŒˆπŸ‘‘