view 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 source

/* $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
);