XMTEXTFIELDGETBASELINE(3)
π XmTextFieldGetBaseline π
okay bestie, so this is a page from the XmTextFieldGetBaseline(library call) manual β yes the whole name is a mouthful, we love her anyway π«Ά β and it's literally just here to tell you how to grab the y position of the baseline in a TextField widget. no cap. let's get into it π
β¨ NAME β¨
XmTextFieldGetBaseline β a TextField function that accesses the y position of the baseline πΈ
π¦ SYNOPSIS π¦
#include <Xm/TextF.h>
int XmTextFieldGetBaseline(
Widget widget);
like. she takes one widget. that's it. iconic behavior fr fr β¨
π DESCRIPTION π
XmTextFieldGetBaseline accesses the y position of the baseline in the TextField widget, relative to the y position of the top of the widget. so it's giving "where is the baseline, measured from the top" energy π
widgetβ specifies the TextField widget ID π
for a complete definition of TextField and its associated resources, see XmTextField(3). go read her, she's the main character of this whole lore drop π
β RETURN β
returns an integer value that indicates the y position of the baseline in the TextField widget. π§
and bestie, the calculation is not simple β it literally takes into account:
- the margin height
- the shadow thickness
- the highlight thickness
- 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). so everything is measured from the top, periodt. π
π RELATED π
lowkey a tiny page but highkey useful β the math is doing a LOT behind the scenes and we respect her for it ππ
and that's the whole page, bestie!! this was the <strong>XmTextFieldGetBaseline(library call)</strong> manual β shoutout to the library call crew, ily, drink water, and go measure some baselines π
β¨π¦
π¦ 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