XMWIDGETGETBASELINES(3)
π XmWidgetGetBaselines π
okay bestie, so this one is literally from the library call corner of the Motif universe, and it's called XmWidgetGetBaselines β she's the one who goes and gets you the baseline info for a widget. no cap. π
β¨ NAME β¨
XmWidgetGetBaselines β Retrieves baseline information for a widget π¦
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
Boolean XmWidgetGetBaselines(
Widget widget,
Dimension **baselines,
int *line_count);
β¨ DESCRIPTION β¨
So XmWidgetGetBaselines returns an array that contains one or more baseline values associated with the specified widget. fr fr, that's the whole vibe. π«Ά
And the baseline of any given line of text? It's a vertical offset in pixels, measured from the origin of the widget's bounding box to the given baseline. iconic geometry moment. π
widgetβ Specifies the ID of the widget for which baseline values are requestedbaselinesβ Returns an array that contains the value of each baseline of text in the widget. The function allocates space to hold the returned array. The application is responsible for managing the allocated space. The application can recover this allocated space by callingXtFree.
not me reminding you that you own that memory once she hands it over β pls call XtFree when you're done, bestie, don't just ghost it π
line_countβ Returns the number of lines in the widget
β¨ RETURN β¨
Returns a Boolean value that indicates whether the widget contains a baseline. π
- If the value is
True, the function returns a value for each baseline of text. slay. β¨ - If it is
False, the function was unable to return a baseline value. π
β¨ RELATED β¨
XmWidgetGetDisplayRect(3) β go read that one next, iykyk π
okay that's the whole page, mwah π β this was XmWidgetGetBaselines(library call), from the library call era, and the date stamp on this cutie is the same as the one riding along in the footer. bye bestie, go XtFree ur arrays π«ΆπΈ
π¦ 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