3 #if defined(__cplusplus)
6 typedef struct Menu Menu;
7 typedef struct Mousectl Mousectl;
11 int buttons; /* bit array: LMR=124 */
19 struct Channel *c; /* chan(Mouse) */
20 struct Channel *resizec; /* chan(int)[2] */
21 /* buffered in case client is waiting for a mouse action before handling resize */
24 int mfd; /* to mouse file */
25 int cfd; /* to cursor file */
26 int pid; /* of slave proc */
28 /*Image* image; / * of associated window/display */
41 extern Mousectl* initmouse(char*, Image*);
42 extern void moveto(Mousectl*, Point);
43 extern int readmouse(Mousectl*);
44 extern void closemouse(Mousectl*);
46 extern void setcursor(Mousectl*, struct Cursor*);
47 extern void drawgetrect(Rectangle, int);
48 extern Rectangle getrect(int, Mousectl*);
49 extern int menuhit(int, Mousectl*, Menu*, Screen*);
52 #if defined(__cplusplus)