xref: /plan9/sys/src/cmd/vnc/screen.h (revision 9a747e4fd48b9f4522c70c07e8f882a15030f964)
1 typedef struct Cursor Cursor;
2 typedef struct Cursorinfo Cursorinfo;
3 struct Cursorinfo {
4 	Cursor;
5 	Lock;
6 };
7 
8 extern Cursorinfo	cursor;
9 extern Cursor		arrow;
10 extern Memimage		*gscreen;
11 extern int		cursorver;
12 extern Point		cursorpos;
13 
14 Point 		mousexy(void);
15 int		cursoron(int);
16 void		cursoroff(int);
17 void		setcursor(Cursor*);
18 void		flushmemscreen(Rectangle r);
19 Rectangle	cursorrect(void);
20 void		cursordraw(Memimage *dst, Rectangle r);
21 
22 void		drawactive(int);
23 void		drawlock(void);
24 void		drawunlock(void);
25 int		candrawlock(void);
26 void		getcolor(ulong, ulong*, ulong*, ulong*);
27 int		setcolor(ulong, ulong, ulong, ulong);
28 #define		TK2SEC(x)	0
29 extern void	blankscreen(int);
30 void		screeninit(int x, int y, char *chanstr);
31 void		mousetrack(int x, int y, int b, int msec);
32 uchar		*attachscreen(Rectangle*, ulong*, int*, int*, int*);
33 
34 void		fsinit(char *mntpt, int x, int y, char *chanstr);
35