~kris/9p

9hist

ref: 7f5fa5ddf05052d2cd74240bb7e893495dd6cd5e 9hist/pc/screen.h -rw-r--r-- 802 bytes
7f5fa5dd — David du Colombier Plan 9 from Bell Labs 1997-07-16 29 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
typedef struct Cursorinfo	Cursorinfo;

struct Cursorinfo
{
	Cursor;
	Lock;
	int	visible;	/* on screen */
	int	disable;	/* from being used */
	int	frozen;		/* from being used */
	Rectangle r;		/* location */
	Rectangle clipr;	/* r clipped into screen */
	int	l;		/* width of cursorwork (in bytes) */
	int	tl;		/* scan line byte width of mouse at r */
};

Cursorinfo	cursor;
Cursor		curs;
extern int	cursoron(int);
extern void	cursoroff(int);
extern void	setcursor(Cursor*);

/*
 *  mouse types
 */
enum
{
	Mouseother=	0,
	Mouseserial=	1,
	MousePS2=	2,
};
extern int	mousetype;

extern void	mousectl(char*);
extern void	mousetrack(int, int, int);
extern Point	mousexy(void);

extern void	mouseaccelerate(char*);
extern int	m3mouseputc(void*, int);
extern int	mouseputc(void*, int);
extern int	mouseswap;