1 typedef struct Menu Menu;
2 typedef struct Mousectl Mousectl;
6 int buttons; /* bit array: LMR=124 */
14 struct Channel *c; /* chan(Mouse) */
15 struct Channel *resizec; /* chan(int)[2] */
16 /* buffered in case client is waiting for a mouse action before handling resize */
19 int mfd; /* to mouse file */
20 int cfd; /* to cursor file */
21 int pid; /* of slave proc */
23 /*Image* image; / * of associated window/display */
36 extern Mousectl* initmouse(char*, Image*);
37 extern void moveto(Mousectl*, Point);
38 extern int readmouse(Mousectl*);
39 extern void closemouse(Mousectl*);
41 extern void setcursor(Mousectl*, struct Cursor*);
42 extern void drawgetrect(Rectangle, int);
43 extern Rectangle getrect(int, Mousectl*);
44 extern int menuhit(int, Mousectl*, Menu*, Screen*);