Now that we have printer device it makes sense to build Print module.
[AROS-Contrib.git] / fish / memsnap / wintext.h
blob218474da78a8e9077a3e2447e1ff0f3a967325c2
1 /*
2 * wintext.h
4 * Header for font-independent window-text system, which allows
5 * writing of text based on character positions.
7 * MWS 3/92.
8 */
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 */
15 } WINTEXT;
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 */
25 } WINTEXTINFO;
27 BOOL InitWinTextInfo(WINTEXTINFO *);
28 void WinText(WINTEXTINFO *, char *text, UWORD lpos, UWORD tpos, UWORD pen, UWORD mode);
29 void RenderWinTexts(WINTEXTINFO *, WINTEXT *);