XMTEXTGETCENTERLINE(3)
β¨ XmTextGetCenterline β¨
okay so bestie, welcome to the XmTextGetCenterline manual page β it's a library call from the XmText crew, and we're about to get so cozy with it. π
πΈ NAME πΈ
XmTextGetCenterline β returns the height (length) of a character string when the writing direction is vertical. no cap, that's literally what it says. π
π SYNOPSIS π
#include <Xm/Text.h>
int XmTextGetCenterline(
Widget widget);
π¦ DESCRIPTION π¦
so like, XmTextGetCenterline goes and accesses the x position of the centerline in the Text widget β and it's relative to the x position of the top of the widget. it's giving very precise, very demure. β¨
widgetβ specifies the Text widget ID. that's the one and only argument, bestie. π«Ά
π RETURN VALUE π
okay so here's the tea β:
- In the case of horizontal writing, this function accesses
0. literally zero. nada. π© - In the case of vertical writing, this function accesses the x position of the first centerline in the Text widget, relative to the x position of the left of the widget. and the calculation? it takes into account:
- the margin width
- shadow thickness
- highlight thickness
- and a half of font width of the first font(set) in the fontlist used for drawing text
so it's doing the math, mathing. π₯
π SEE ALSO π
and that's the whole vibe, bestie. this iconic little page came from the XmTextGetCenterline(library call) manual β go forth and centerline responsibly. πβ¨π
π¦ 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