XMSTRINGEXTENT(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

✨ 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, both width and height are pointers to Dimension, so make sure you're passing real, writable memory β€” she's writing into them, not just reading. πŸ”₯


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 πŸ’–βœ¨πŸŽ€