XMTEXTGETBASELINE(3)
πΈ XmTextGetBaseline β the vibe check for your Text widget's baseline π
okay bestie, welcome to XmTextGetBaseline, a library call straight out of the XmText family β¨ it's a Text function that accesses the y position of the baseline, and honestly? it's giving very precise, very demure, very mindful. π
β¨ SYNOPSIS β¨
#include <Xm/Text.h>
int XmTextGetBaseline(
Widget widget);
π¦ DESCRIPTION π¦
So XmTextGetBaseline accesses the y position of the baseline in the Text widget, and that position is relative to the y position of the top of the widget. no cap, that's the whole flex. π
π¨ okay listen up, vertical mode girlies: when theXmNlayoutDirectionresource isXmTOP_TO_BOTTOM, this function returns0and your program should go useXmTextGetCenterlineinstead. that's the assignment, fr fr. π
widgetβ Specifies the Text widget ID π«Ά
For a complete definition of Text and its associated resources, see XmText(3). π
β RETURN β
It returns an integer value that indicates the y position of the baseline in the Text widget π
And the way it calculates that?? obsessed. it takes into account:
- the margin height
- the shadow thickness
- the highlight thickness
- and the font ascent of the first font (set) in the fontlist used for drawing text
In this calculation, the y position of the top of the widget is 0 (zero). periodt. π
π RELATED π
and that's the whole page, bestie π this lil cutie lives in the library call section of the manual, so go forth and measure those baselines with main character energy ππ iykyk β¨
π¦ 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