Mercurial > kinput2.yaz
diff include/MyDispatch.h @ 0:92745d501b9a
initial import from kinput2-v3.1
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 08 Mar 2010 04:44:30 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/MyDispatch.h Mon Mar 08 04:44:30 2010 +0900 @@ -0,0 +1,39 @@ +/* $Id: MyDispatch.h,v 1.3 1991/02/06 10:54:31 ishisone Rel $ */ + +/* + * a simple event dispatch library for non-widget windows + */ + +extern void MyDispatchEvent( +#if NeedFunctionPrototypes + XEvent * /* event */ +#endif +); + +extern void MyAddEventHandler( +#if NeedFunctionPrototypes + Display * /* dpy */, + Window /* window */, + int /* type */, + unsigned long /* mask */, + void (*)() /* func */, + XtPointer /* data */ +#endif +); + +extern void MyRemoveEventHandler( +#if NeedFunctionPrototypes + Display * /* dpy */, + Window /* window */, + int /* type */, + void (*)() /* func */, + XtPointer /* data */ +#endif +); + +extern void MyRemoveAllEventHandler( +#if NeedFunctionPrototypes + Display * /* dpy */, + Window /* window */ +#endif +);