| WinStrXYWrap | Function (ROM Call 0x5DB)

AMS 2.04 or higher | wingraph.h

short WinStrXYWrap (WINDOW *w, WIN_COORDS x, WIN_COORDS y, const char *s, unsigned short flags);

Draws a word-wrapped string to a window at position x, y (window-based), and returns the height in pixels of the text drawn.

w is the pointer to a window.
x and y is the place where to draw the string, x is also the left margin to wrap on.
s is the pointer to the string to write.
flags: correct values are described in winWriteFlags.
This function is available in the jump table only on AMS 2.04 and later, and the parameter WWF_WRAP_BACK_TO_ZERO is taken into account only on AMS 2.07 and later.

Uses: DrawStrWidthP, FontCharWidth, WinCharXY, WinWidth

See also: winWriteFlags