XmStringExtent(3X) — Subroutines
OSF
NAME
XmStringExtent — a compound string function that determines the size of the smallest rectangle that will enclose the compound string.
SYNOPSIS
#include <Xm/Xm.h> void XmStringExtent (fontlist, string, width, height)
XmFontListfontlist;
XmStringstring;
Dimension∗width;
Dimension∗height;
DESCRIPTION
XmStringExtent determines the width and height, in pixels, of the smallest rectangle that will enclose the provided compound string.
When string has been created with XmStringCreateSimple, the font associated with the character set derived from the current language environment must appear at the front of fontlist. Otherwise, the result of the function is undefined.
fontlistSpecifies the font list
stringSpecifies the string
widthSpecifies a pointer to the width of the rectangle
heightSpecifies a pointer to the height of the rectangle