home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / vifs / gmtc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-07  |  1.9 KB  |  66 lines

  1. /*
  2.  *    gmtc.h -- genious mouse C interface (Turbo C)
  3.  *
  4.  *
  5.  *    2 oct 1988  Olle
  6.  */
  7.  
  8. /* button depressed bits for gm_status.gm_pbuttton */
  9. #define GM_PLEFT   0x01
  10. #define GM_PRIGHT  0x02
  11. #define GM_PMIDDLE 0x04
  12.  
  13. /* button number parameter for gm_press() and gm_release() */
  14. #define GM_LEFT   0
  15. #define GM_RIGHT  1
  16. #define GM_MIDDLE 2
  17.  
  18. /* gm_getpos(), gm_press(), gm_release() and gm_getmickey() return values */
  19. struct gm_status
  20.     {
  21.     int  gm_xpos;     /* horizontal position */
  22.     int  gm_ypos;     /* vertical position */
  23.     int  gm_count;     /* button press/release count */
  24.         char gm_pbutton; /* button status bit set for: GM_PRIGHT,.. */
  25.     };
  26.  
  27. /* struct to define graphics cursor gm_defg() */
  28. struct gm_gcurs
  29.     {
  30.     int gm_hhot;    /* horizontal hot spot -16..16, upper left is (0,0) */
  31.     int gm_vhot;    /* vertical hot spot in the same manner */
  32.     int gm_scmask[16];    /* screen mask: 16 words */
  33.     int gm_cumask[16];    /* cursor mask: 16 words */
  34.     };
  35.  
  36. /* struct to define area for conditional hide cursor gm_chide() */
  37. struct gm_chbox
  38.     {
  39.     int xlow;    /* horizontal minimum */
  40.     int ylow;    /* vertical minimum */
  41.     int xhigh;    /* horizontal maximum */
  42.     int yhigh;    /* vertical maximum */
  43.     };
  44.  
  45. /* genious mouse functions */
  46. int gm_init( void );
  47. void gm_show( void );
  48. void gm_hide( void );
  49. void gm_getpos( struct gm_status *stat );
  50. void gm_setpos( int row, int col );
  51. void gm_press( int button, struct gm_status *stat  );
  52. void gm_release( int button, struct gm_status *stat );
  53. void gm_hlimit( int min, int max );
  54. void gm_vlimit( int min, int max );
  55. void gm_defg( struct gm_gcurs *gcurs );
  56. void gm_deft( int hard, int scstart, int scstop );
  57. void gm_getmickey( struct gm_status *stat );
  58. void gm_event( int mask, int (*func)() );
  59. void gm_lpon( void );
  60. void gm_lpoff( void );
  61. void gm_setmpr( int hrat, int vrat );
  62. void gm_chide( struct gm_chbox *box );
  63. void gm_setspl( int limit );
  64.  
  65. /* others */
  66. void gm_boxin( int cols, int rows, int color, int box[] );