XMDATAFIELDGETSELECTIONPOSITION(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 ✨

XmDataFieldGetSelectionPosition β€” a DataField function that accesses the position of the primary selection πŸ’…

okay so first things first, this page lives in the library call manual, and its title got absolutely butchered by whoever formatted it β€” it shows up as XmDataFiel...ionPosition(library call) at the top and the bottom, like bestie got cut off mid-sentence 😭. We move anyway.


🌸 SYNOPSIS 🌸

#include <Xm/DataF.h>
Boolean XmDataFieldGetSelectionPosition(
Widget widget,
XmTextPosition *left,
XmTextPosition *right);

πŸŽ€ DESCRIPTION πŸŽ€

XmDataFieldGetSelectionPosition goes and peeks at the left and right position of the primary selection inside the text buffer of the DataField widget. that's the whole gig, no cap. πŸ¦‹

  • widget β€” the DataField widget ID. yes, you have to tell her which one. πŸ’–
  • left β€” the pointer where the position of the left boundary of the primary selection gets returned. it's an integer number of characters counting from the beginning of the buffer. the first character position is 0 (zero). ✨
  • right β€” the pointer where the position of the right boundary of the primary selection gets returned. also an integer number of characters from the beginning of the buffer, and also, the first character position is 0 (zero). 🌈

for a complete definition of DataField and its associated resources, go check XmDataField(3). iykyk. πŸ’œ


πŸ‘‘ RETURN πŸ‘‘

this function returns True if the widget owns the primary selection. otherwise it returns False. simple as that, periodt. πŸ™ˆ



and that's the whole page bestie πŸ’… β€” shoutout to the XmDataFieldGetSelectionPosition(library call) header and footer, which are literally the same truncated string twice because the title was too long to fit. iconic behaviour fr fr. go read XmDataField(3) next, mwah πŸŽ€βœ¨