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

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 is 0 (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 is 0 (zero). same rules, other edge 🌸
  • mode β€” Specifies the type of highlighting to be done. and ooh she has options:
    • A value of XmHIGHLIGHT_NORMAL removes highlighting. bye bye, glow off πŸ™ˆ
    • A value of XmHIGHLIGHT_SELECTED highlights the text using reverse video. main character moment, high contrast, iconic πŸ‘‘
    • A value of XmHIGHLIGHT_SECONDARY_SELECTED highlights the text using underlining. subtle, classy, lowkey the prettiest one πŸ’œ

and if you want the complete definition of DataField and all its associated resources, go look at XmDataField(3). iykyk πŸ“–



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 🌸