]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/vnc/screen.h
vnc/devdraw: fix topnwindows() panic when images are not windows (thanks aiju)
[plan9front.git] / sys / src / cmd / vnc / screen.h
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 void            mouseresize(void);
15 Point           mousexy(void);
16 void            cursoron(void);
17 void            cursoroff(void);
18 void            setcursor(Cursor*);
19 void            flushmemscreen(Rectangle r);
20 Rectangle       cursorrect(void);
21 void            cursordraw(Memimage *dst, Rectangle r);
22
23 extern QLock    drawlock;
24 void            drawactive(int);
25 void            getcolor(ulong, ulong*, ulong*, ulong*);
26 int             setcolor(ulong, ulong, ulong, ulong);
27 #define         TK2SEC(x)       0
28 extern void     blankscreen(int);
29 void            screeninit(int x, int y, char *chanstr);
30 void            screenwin(void);
31 void            absmousetrack(int x, int y, int b, ulong msec);
32 Memdata*        attachscreen(Rectangle*, ulong*, int*, int*, int*);
33 void            deletescreenimage(void);
34 void            resetscreenimage(void);
35
36 void            fsinit(char *mntpt, int x, int y, char *chanstr);
37 #define         ishwimage(i)    0