home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 635.lha / MemSnap_v1.0 / wintext.h < prev   
Text File  |  1992-03-30  |  979b  |  30 lines

  1. /*
  2. *    wintext.h
  3. *
  4. *    Header for font-independent window-text system, which allows
  5. *    writing of text based on character positions.
  6. *
  7. *    MWS 3/92.
  8. */
  9.  
  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, mode;    /* color and drawmode for text */
  15. } WINTEXT;
  16.  
  17. typedef struct wintextinfo {
  18.     struct Window *window;        /* window this wintextinfo is for */
  19.     struct TextAttr *tattr;        /* screen's default font - we'll use this */
  20.     UWORD    font_x, font_y;        /* dimensions of default font */
  21.     UWORD    font_baseline;        /* baseline of font */
  22.     BYTE    loffset, toffset,    /* origin (in pixels) for text rendering */
  23.         roffset, boffset;    /* and right and bottom border widths */
  24. } WINTEXTINFO;
  25.  
  26. BOOL InitWinTextInfo(WINTEXTINFO *);
  27. void WinText(WINTEXTINFO *, char *text, UWORD lpos, UWORD tpos, UWORD pen, UWORD mode);
  28. void RenderWinTexts(WINTEXTINFO *, WINTEXT *);
  29.  
  30.