4 * Header for font-independent window-text system, which allows
5 * writing of text based on character positions.
10 typedef struct wintext
{
11 struct wintext
*next
; /* next WINTEXT */
12 char *text
; /* actual text to be rendered */
13 BYTE lpos
, tpos
; /* character coordinates of 1st char in string */
14 UWORD pen
, bg
, mode
; /* color and drawmode for text */
17 typedef struct wintextinfo
{
18 struct TextAttr tattr
; /* screen's default font - we'll use this */
19 struct TextFont
*tf
; /* opened font */
20 struct Window
*window
; /* window this wintextinfo is for */
21 UWORD font_x
, font_y
; /* dimensions of default font */
22 UWORD font_baseline
; /* baseline of font */
23 BYTE loffset
, toffset
, /* origin (in pixels) for text rendering */
24 roffset
, boffset
; /* and right and bottom border widths */
27 BOOL
InitWinTextInfo(WINTEXTINFO
*);
28 void WinText(WINTEXTINFO
*, char *text
, UWORD lpos
, UWORD tpos
, UWORD pen
, UWORD mode
);
29 void RenderWinTexts(WINTEXTINFO
*, WINTEXT
*);