diff options
| author | rsc <devnull@localhost> | 2003-09-30 19:05:50 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2003-09-30 19:05:50 +0000 |
| commit | 522b0689c340d26feeac360640bf7e2e0582353c (patch) | |
| tree | ba3a550c28684be3b3997899528a110c4e9cd91a /src/libdraw/mouse.h | |
| parent | 2df2758496b2ab508d349208449f04d85ae2eb2c (diff) | |
| download | plan9port-522b0689c340d26feeac360640bf7e2e0582353c.tar.gz plan9port-522b0689c340d26feeac360640bf7e2e0582353c.zip | |
Reorg
Diffstat (limited to 'src/libdraw/mouse.h')
| -rw-r--r-- | src/libdraw/mouse.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/libdraw/mouse.h b/src/libdraw/mouse.h deleted file mode 100644 index f0a0f697..00000000 --- a/src/libdraw/mouse.h +++ /dev/null @@ -1,44 +0,0 @@ -typedef struct Menu Menu; -typedef struct Mousectl Mousectl; - -struct Mouse -{ - int buttons; /* bit array: LMR=124 */ - Point xy; - ulong msec; -}; - -struct Mousectl -{ - Mouse m; - struct Channel *c; /* chan(Mouse) */ - struct Channel *resizec; /* chan(int)[2] */ - /* buffered in case client is waiting for a mouse action before handling resize */ - - char *file; - int mfd; /* to mouse file */ - int cfd; /* to cursor file */ - int pid; /* of slave proc */ - Display *display; - /*Image* image; / * of associated window/display */ -}; - -struct Menu -{ - char **item; - char *(*gen)(int); - int lasthit; -}; - -/* - * Mouse - */ -extern Mousectl* initmouse(char*, Image*); -extern void moveto(Mousectl*, Point); -extern int readmouse(Mousectl*); -extern void closemouse(Mousectl*); -struct Cursor; -extern void setcursor(Mousectl*, struct Cursor*); -extern void drawgetrect(Rectangle, int); -extern Rectangle getrect(int, Mousectl*); -extern int menuhit(int, Mousectl*, Menu*, Screen*); |
