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 */
23 Display *display; /* associated 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*);
46 extern void bouncemouse(Mouse*);
47 extern int _windowhasfocus; /* XXX do better */
48 extern int _wantfocuschanges;
50 #if defined(__cplusplus)