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