XMTEXTSETTOPCHARACTER(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 πŸŽ€

XmTextSetTopCharacter β€” a Text function that sets the position of the first character displayed. iconic behavior, honestly πŸ’–

✨ SYNOPSIS ✨

#include <Xm/Text.h>
void XmTextSetTopCharacter(
Widget widget,
XmTextPosition top_character);

πŸ’… DESCRIPTION πŸ’…

Okay so XmTextSetTopCharacter sets the position of the text at the top of the Text widget. Like, it's literally deciding what's the first thing you see at the top, no cap.

If the XmNeditMode is XmMULTI_LINE_EDIT, the line of text that contains top_character is displayed at the top of the widget without the text shifting left or right. It's giving "hold still, bestie" energy.

If the edit mode is XmSINGLE_LINE_EDIT, the text moves horizontally so that top_character is the first character displayed. Slay, horizontal scroll. ✨

  • widget β€” specifies the Text widget ID. Your main character widget. πŸ‘‘
  • top_character β€” specifies the position in the text to display at the top of the widget. This is an integer number of characters from the beginning of the text buffer. The first character position is 0 (zero). Zero-based indexing, we love to see it. πŸ’…

For a complete definition of Text and its associated resources, see XmText(3). iykyk

XmText(3). Go read it, bestie, it's the whole lore.


πŸ’– XmTextSetTopCharacter, library call edition, signing off β€” periodt πŸ’–