home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / rpn30src.zip / DISPLAY.H < prev    next >
Text File  |  1990-05-30  |  2KB  |  63 lines

  1. /**
  2.  ** DISPLAY.H
  3.  **
  4.  ** Dimensions & colors for the calculator display window.
  5.  ** For version 2, these two defines become global variables in "rpn.h":
  6.  **    #define TOP       6
  7.  **    #define LEFT      39
  8.  **
  9.  ** For v2.3, these defines become global variables in "rpn.h":
  10.  **    #define D_BKGND   BLACK
  11.  **    #define D_BORDER  LIGHTGRAY
  12.  **    #define D_NUM     YELLOW
  13.  **    #define D_FTN     CYAN
  14.  **
  15.  ** 90.05.11 v3.0
  16.  **/
  17. #ifndef DISPLAY_H
  18. #define DISPLAY_H
  19.  
  20. void open_display(void);
  21. void close_display(void);
  22. void display(void);
  23. void show_base(int);
  24. void prterr(const char *, const char *);
  25.  
  26.  
  27. /**********  defines for Display Window  **********/
  28.  
  29. #define D_WIDTH   38
  30. #define D_DEPTH    9
  31. #define RIGHT     (LEFT-1 + D_WIDTH)
  32. #define BOTTOM    (TOP-1 + D_DEPTH)
  33. #define MSG_LINE  (TOP+6)
  34.  
  35. #define S_TOP     (TOP+1)       /** for displaying the Stack **/
  36. #define S_BOTTOM  BOTTOM
  37. #define S_LEFT    (LEFT+1)
  38. #define S_RIGHT   (S_LEFT+20)
  39. #define STK_WIDTH (S_RIGHT - S_LEFT + 1)
  40.  
  41. #define STK_MARKS 7             /** format space used for exp, dec.pt. **/
  42.  
  43. #define B_LEFT    (LEFT+28)     /** for displaying the Base **/
  44. #define B_RIGHT   (B_LEFT+3)
  45.  
  46. #define V_LEFT    (LEFT+33)     /** for displaying the Save state **/
  47. #define V_RIGHT   (LEFT+37)
  48.  
  49.  
  50. #define F_TOP     (TOP+3)       /** for displaying the Frame **/
  51. #define F_BOTTOM  MSG_LINE
  52. #define F_LEFT    (LEFT+24)
  53. #define F_RIGHT   RIGHT
  54.  
  55.  
  56. #ifdef FRAME_ALLOC
  57. #include "dispscrn.h"
  58. #else
  59. extern char frame[];
  60. #endif
  61.  
  62. #endif  /* DISPLAY_H */
  63.