DOKK / manpages / debian 11 / libmotif-dev / XmStringExtent.3.en
XmStringExtent(3) Library Functions Manual XmStringExtent(3)

XmStringExtent — A compound string function that determines the size of the smallest rectangle that will enclose the compound string "XmStringExtent" "compound string functions" "XmStringExtent"

#include <Xm/Xm.h>
void XmStringExtent(
XmRenderTable rendertable,
XmString string,
Dimension *width,
Dimension *height);

XmStringExtent determines the width and height, in pixels, of the smallest rectangle that will enclose the provided compound string.

Specifies the render table
Specifies the string
Specifies a pointer to the width of the rectangle
Specifies a pointer to the height of the rectangle

XmStringCreate(3).