home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_11 / 2n11050a < prev    next >
Text File  |  1991-04-17  |  1KB  |  49 lines

  1. /**********************************************/
  2. /* Listing 1.                                 */
  3. /*                                            */
  4. /* Header file for writing BIOS Fonts on any  */
  5. /* byte boundry.                              */
  6. /* Borland C++ Compiler.                      */
  7. /*                                            */
  8. /* (c)copyright 1991, Michael Chapin          */
  9. /**********************************************/
  10.  
  11. #define BF8x8 0
  12. #define BF8x14 1
  13. #define BF8x16 2
  14.  
  15. typedef enum {FALSE, TRUE} BOOL;
  16.  
  17. typedef struct{
  18.   unsigned Color;
  19.   unsigned Width;
  20.   unsigned Height;
  21.   void far *FontPtr;
  22. }BFont;
  23.  
  24. void SetBFonts();
  25. /* sets up fonts */
  26.  
  27. void SetBFColor(unsigned Which, unsigned Color);
  28.  
  29. char GetBFColor(unsigned Which);
  30. /* Returns the current color for "Which" font */
  31.  
  32. void SetBFFont(unsigned Which);
  33. /* Sets the current font that will be written */
  34.  
  35. void PrintBFAt(unsigned x, unsigned y, char *Msg);
  36. /*
  37.    Prints a font at x, y without changing the font
  38.    pointer.
  39. */
  40.  
  41. void EGABlock(unsigned x, unsigned y,
  42.               unsigned width, unsigned height,
  43.               unsigned c);
  44. /*
  45.    Puts a solid block of color on the screen.  x, y
  46.    is the upper left hang point of the box.  width is
  47.    the pixel width of the box, height is the number of
  48.    lines high.
  49. */