home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / GVECTORS.ZIP / XMOUSE.H < prev    next >
Text File  |  1993-09-13  |  2KB  |  81 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XMOUSE - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;-----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XMOUSE_H_
  22. #define _XMOUSE_H_
  23.  
  24. #define LEFT_PRESSED  1
  25. #define RIGHT_PRESSED 2
  26.  
  27. /* GLOBAL VARS ========================================================= */
  28.  
  29. extern WORD MouseInstalled;   /* Indicates whether mouse handler installed */
  30. extern WORD MouseHidden;      /* Indicates whether mouse cursor is hidden  */
  31. extern WORD MouseButtonStatus;/* Holds the mouse button status             */
  32. extern WORD MouseX;           /* Current X position of mouse cursor        */
  33. extern WORD MouseY;           /* Current Y position of mouse cursor        */
  34. extern BYTE MouseFrozen;      /* Disallows position updates if TRUE        */
  35. extern BYTE MouseColor;       /* The mouse cursors colour                  */
  36.  
  37. /* FUNCTIONS =========================================================== */
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43.  
  44.  
  45. void  x_mouse_init(void);       /* Initialize mouse cursor            */
  46.  
  47. void  x_define_mouse_cursor(    /* Define and set a cursor shape      */
  48.        char far MouseDef,
  49.        int color);
  50.  
  51. void  x_update_mouse(void);     /* Force mouse cursor position update */
  52.  
  53. void  x_show_mouse(void);       /* Show mouse cursor if hidden        */
  54.  
  55. void  x_hide_mouse(void);       /* Hide mouse cursor if visible       */
  56.  
  57. void  x_mouse_remove(void);     /* Remove installed mouse handler     */
  58.  
  59. void  x_position_mouse(         /* Set the mouse position             */
  60.        int x,
  61.        int y);
  62.  
  63. void  x_put_cursor(             /* Draw the mouse cursor (NOT FOR     */
  64.        int x,               /* general use)                       */
  65.        int y,
  66.        int topclip,
  67.        int botclip,
  68.        WORD ScrnOff);
  69.  
  70.  
  71. void x_mouse_window(int x0,     /* Define a mouse window */
  72.                     int y0,
  73.                     int x1,
  74.                     int y1);
  75.  
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79.  
  80. #endif
  81.