XMDATAFIELDGETSELECTIONPOSITION(3)
β¨ 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 is0(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 is0(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. π
π«Ά RELATED π«Ά
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 πβ¨
π¦ 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