XMTEXTSETHIGHLIGHT(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 🌸

okay bestie, meet XmTextSetHighlight β€” A Text function that highlights text. it's a library call, and it's here to make your Text widget look cute without actually selecting anything. πŸ’…βœ¨


✨ SYNOPSIS ✨

#include <Xm/Text.h>
void XmTextSetHighlight(
Widget widget,
XmTextPosition left,
XmTextPosition right,
XmHighlightMode mode);

πŸ’– DESCRIPTION πŸ’–

XmTextSetHighlight highlights text between the two specified character positions. The mode parameter determines the type of highlighting.

Highlighting text merely changes the visual appearance of the text; it does not set the selection. 🚨

Now the args, one by one, no skips, fr fr:

  • widget β€” Specifies the Text widget ID. πŸ‘‘
  • 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). πŸ“
  • 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). πŸ¦‹
  • mode β€” Specifies the type of highlighting to be done. ✨ Here are the values:
    • A value of XmHIGHLIGHT_NORMAL removes highlighting. 🧼
    • A value of XmHIGHLIGHT_SELECTED highlights the text using reverse video. πŸ”₯
    • A value of XmHIGHLIGHT_SECONDARY_SELECTED highlights the text using underlining. πŸ’…

For a complete definition of Text and its associated resources, see XmText(3). πŸ“–


  • XmText(3). bestie, go read that too, iykyk πŸ’œ

and that's the page! signed, sealed, delivered: XmTextSetHighlight(library call) β€” that's the source/version/date footer energy, periodt πŸ’–βœ¨πŸŽ€