XMTEXTSETTOPCHARACTER(3)
π 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 is0(zero). Zero-based indexing, we love to see it. π
For a complete definition of Text and its associated resources, see XmText(3). iykyk
π¦ RELATED π¦
XmText(3). Go read it, bestie, it's the whole lore.
π XmTextSetTopCharacter, library call edition, signing off β periodt π
π¦ 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