MYPRINT.H 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. Copyright (C) 1994-1995 Apogee Software, Ltd.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. #ifndef __MYPRINT_H
  16. #define __MYPRINT_H
  17. enum COLORS
  18. {
  19. BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY, DARKGRAY,
  20. LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHTMAGENTA, YELLOW, WHITE
  21. };
  22. #define NONE -1
  23. #define SINGLE_FRAME -1
  24. #define DOUBLE_FRAME -2
  25. void DrawText( int x, int y, int ch, int foreground, int background );
  26. void TextBox( int x1, int y1, int x2, int y2, int ch, int foreground, int background );
  27. void TextFrame( int x1, int y1, int x2, int y2, int type, int foreground, int background );
  28. void mysetxy( int x, int y );
  29. void myputch( char ch );
  30. int printstring( char *string );
  31. int printnum( int number );
  32. int printunsigned( unsigned long number, int radix );
  33. int myprintf( char *fmt, ... );
  34. #endif