home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / HP95_100 / P_GRAMG / HPCLIB / HPCLIB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-07  |  2.4 KB  |  105 lines

  1. /******************************
  2. * HP100LX WINDOWS ENVIRONMENT *
  3. *       Sept. 6, vr. 2.1      *
  4. *  header file for: HPCLIB.C  *
  5. *      by: Harry Konstas      *
  6. ******************************/
  7.  
  8.  
  9. /* Constant declaration */
  10.  
  11. #define BLACK_COLOR 1
  12. #define WHITE_COLOR 0
  13.  
  14. #define AN_LEFT 0x20
  15. #define AN_RIGHT 0x60
  16.  
  17. #define SMALL_FONT 0x0808
  18. #define MEDIUM_FONT 0x0a0b
  19. #define LARGE_FONT 0x100c
  20.  
  21. #define FORCE_RULE 0
  22. #define AND_RULE 1
  23. #define OR_RULE 2
  24. #define XOR_RULE 3
  25. #define INVFOR_RULE 4
  26. #define INVAND_RULE 5
  27. #define INVOR_RULE 6
  28. #define INVXOR_RULE 7
  29. #define TXT_RULE 8
  30.  
  31. #define OUTLINE_FILL 0
  32. #define SOLID_FILL 1
  33. #define PATTERN_FILL 2
  34.  
  35. /* Macro declarations */
  36.  
  37. #define TOPMESSAGE char topmes[]
  38. #define MENUBARMSG char mbarmes[]
  39. #define MENUITEMS  char *menitm[8][10]
  40. #define KEYLABELS  char botmes[]
  41.  
  42.  
  43. /* FUNCTION DECLARATIONS */
  44.  
  45.  
  46. /*****************
  47. * Misc functions *
  48. *****************/
  49.  
  50. void is100(void);
  51. void announ(int position);
  52. void toplin(char far *string);
  53. void botlin(char far *labels);
  54. void terminate(void);
  55.  
  56.  
  57. /*******************************
  58. * Low level graphics functions *
  59. *******************************/
  60.  
  61. void setgra(void);
  62. void setmda(void);
  63. void setfon(int size);
  64. void setpos(int horiz,int vert);
  65. void setcol(int color);
  66. void setrul(int rule);
  67. void setlin(unsigned int line_type);
  68. void setmsk(char far *fill_mask);
  69. void putimg(int horiz,int vert,int rule,char far *buffer);
  70. void getimg(int from_horiz,int from_vert,int to_horiz,int to_vert,char far *buffer);
  71. void wrtext(int horiz,int vert,char far *string);
  72.  
  73.  
  74. /********************************
  75. * High level graphics functions *
  76. ********************************/
  77.  
  78. void line(int from_horiz,int from_vert,int to_horiz,int to_vert);
  79. void rectan(int from_horiz,int from_vert,int to_horiz,int to_vert,int fill);
  80. void revblk(int from_horiz,int from_vert,int to_horiz,int to_vert);
  81.  
  82.  
  83. /*******************
  84. * Window functions *
  85. *******************/
  86.  
  87. void errwin(char far *message);
  88. void open_win(int winid,int from_horiz,int from_vert,int to_horiz,int to_vert,char far *message);
  89. void close_win(int winid);
  90. void window(int from_horiz,int from_vert,int to_horiz,int to_vert,char far *message);
  91.  
  92.  
  93. /*****************
  94. * Menu functions *
  95. *****************/
  96.  
  97. void open_mbar(void);
  98. void close_mbar(void);
  99. void sel_menu(int menuid);
  100. int  open_menu(int menuid);
  101. void close_menu();
  102. void sel_opt(int optnum);
  103. int navigate(int menum);
  104.  
  105.