XMWIDGETGETBASELINES(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’… 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 requested
  • baselines β€” 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 calling XtFree.
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. πŸ’€

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 🫢🌸