XMTEXTSETSELECTION(3)
π XmTextSetSelection β a Text function that sets the primary selection of the text π
okay bestie, so this is XmTextSetSelection from the <Xm/Text.h> library, aka a library call, and it's lowkey one of those little Text widget functions that just does the thing and dips. no return value, no drama, just vibes. let's get into it β¨
β¨ SYNOPSIS β¨
#include <Xm/Text.h>
void XmTextSetSelection(
Widget widget,
XmTextPosition first,
XmTextPosition last,
Time time);
πΈ DESCRIPTION πΈ
XmTextSetSelection sets the primary selection of the text inside the widget. that's the main character move here.
but wait, there's more π β it also:
- moves the insertion cursor to the last position of the selection (cursor said "I'm going where the selection ends, periodt")
- calls the widget's
XmNmotionVerifyCallbackcallbacks
here's the tea on each argument:
widgetβ specifies the Text widget ID. it's the widget you're doing this to, obvs π«Άfirstβ marks the first character position of the text to be selected. the starting line, if you will πlastβ marks the last position of the text to be selected. the finish line, no cap β¨timeβ specifies the time at which the selection value is desired. it should be the same as the time of the event that triggered this request. one source of a valid time stamp is the functionXtLastTimestampProcessedπ (iykyk β that's your timestamp plug)
for a complete definition of Text and its associated resources, see XmText(3). don't skip it, bestie, it's giving essential π
π RELATED π
and that's the whole page!! this was XmTextSetSelection(library call), like, the entire manpage, we ate fr fr ππ¦ thanks for reading bestie, go set some selections and slay π
π
π¦ 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