XMSTRINGEXTENT(3)
β¨ XmStringExtent β¨
okay bestie, welcome to the XmStringExtent page from the library call manual π this is a Motif/Xm situation, and honestly? it's giving "measure my vibes" energy.
π NAME π
XmStringExtent β a compound string function that determines the size of the smallest rectangle that will enclose the compound string. periodt. π
πΈ SYNOPSIS πΈ
#include <Xm/Xm.h>
void XmStringExtent(
XmRenderTable rendertable,
XmString string,
Dimension *width,
Dimension *height);
like. it returns void, so don't go looking for a return value, bestie, there isn't one π the answers come back through the pointers.
π¦ DESCRIPTION π¦
XmStringExtent determines the width and height, in pixels, of the smallest rectangle that will enclose the provided compound string. that's it. that's the whole job. it's the "how much space do I need for this" girlie β¨
rendertableβ Specifies the render table. (yes queen, this is where the font/rendering tea lives π)stringβ Specifies the string. (the actual compound string you're measuring, no cap)widthβ Specifies a pointer to the width of the rectangle. (you hand her a pointer, she fills it in π)heightβ Specifies a pointer to the height of the rectangle. (same deal, pointer in, height out π«Ά)
ngl, bothwidthandheightare pointers toDimension, so make sure you're passing real, writable memory β she's writing into them, not just reading. π₯
π RELATED π
and that's the whole page, bestie!! π this was XmStringExtent(library call) from the library call manual β sending you the source + version and all the date energy in spirit, mwah π stay iconic, go measure something pretty πβ¨π
π¦ 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