plan 9 kernel history: overview | file list | diff list

1994/0624/pc/screen.h (diff list | history)

1994/0624/sys/src/9/pc/screen.h:1,211997/0327/sys/src/9/pc/screen.h:1,40 (short | long | prev | next)
Add mouse prototypes.
rsc Fri Mar 4 12:44:25 2005
1994/0414    
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; 
1997/0327    
Cursor		curs; 
1994/0624    
extern int	cursoron(int); 
1994/0414    
extern void	cursoroff(int); 
extern Point	mousexy(void); 
extern void	cursorinit(void); 
1994/0520    
extern void	setcursor(Cursor*); 
1997/0327    
 
/* 
 *  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; 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)