XMDATAFIELDSETHIGHLIGHT(3)
β¨ NAME β¨
XmDataFieldSetHighlight β a DataField function that highlights text π
okay so real quick bestie, this is straight out of the library call manual, and it's genuinely one of the cutest lil functions in the DataField family. no cap.
πΈ SYNOPSIS πΈ
#include <Xm/DataF.h>
void XmDataFieldSetHighlight(
Widget widget,
XmTextPosition left,
XmTextPosition right,
XmHighlightMode mode);
π DESCRIPTION π
XmDataFieldSetHighlight highlights text between the two specified character positions. and the mode parameter? that's the girl who decides what kind of highlighting we're doing. πβοΈ
β οΈ okay important: highlighting text merely changes the visual appearance of the text. it does not set the selection. they are two different things, bestie, do not confuse them. π
here's the whole cast of parameters, one by one π«Ά
widgetβ Specifies the DataField widget ID. it's giving "which widget are we doing this to" energy β¨leftβ Specifies the position of the left boundary of text to be highlighted. This is an integer number of characters from the beginning of the text buffer. The first character position is0(zero). yes, zero-indexed, we love that for us πrightβ Specifies the position of the right boundary of text to be highlighted. This is an integer number of characters from the beginning of the text buffer. The first character position is0(zero). same rules, other edge πΈmodeβ Specifies the type of highlighting to be done. and ooh she has options:- A value of
XmHIGHLIGHT_NORMALremoves highlighting. bye bye, glow off π - A value of
XmHIGHLIGHT_SELECTEDhighlights the text using reverse video. main character moment, high contrast, iconic π - A value of
XmHIGHLIGHT_SECONDARY_SELECTEDhighlights the text using underlining. subtle, classy, lowkey the prettiest one π
- A value of
and if you want the complete definition of DataField and all its associated resources, go look at XmDataField(3). iykyk π
π RELATED π
slay, that's the whole page πβ¨ this one comes to you from the XmDataFieldSetHighlight(library call) manual β the library call one, you know the vibes π
π¦ go forth and highlight responsibly, bestie πΈ
π¦ 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