Logo Search packages:      
Sourcecode: ion3 version File versions

event.h

/*
 * ion/ioncore/event.h
 *
 * Copyright (c) Tuomo Valkonen 1999-2005. 
 *
 * Ion is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 */

#ifndef ION_IONCORE_EVENT_H
#define ION_IONCORE_EVENT_H

#include <libmainloop/hooks.h>
#include "common.h"
#include "region.h"

#define IONCORE_EVENTMASK_PTRGRAB (ButtonPressMask|ButtonReleaseMask| \
                                   ButtonMotionMask)

#define IONCORE_EVENTMASK_PTRLOOP (IONCORE_EVENTMASK_PTRGRAB|ExposureMask| \
                                   KeyPressMask|KeyReleaseMask|            \
                                   EnterWindowMask|FocusChangeMask)

#define IONCORE_EVENTMASK_NORMAL (ExposureMask|KeyPressMask|         \
                                  ButtonPressMask|ButtonReleaseMask| \
                                  FocusChangeMask|EnterWindowMask)

#define IONCORE_EVENTMASK_CWINMGR (IONCORE_EVENTMASK_NORMAL| \
                                   SubstructureRedirectMask)

#define IONCORE_EVENTMASK_ROOT (IONCORE_EVENTMASK_CWINMGR| \
                                PropertyChangeMask|ColormapChangeMask)

#define IONCORE_EVENTMASK_CLIENTWIN (ColormapChangeMask|                  \
                                     PropertyChangeMask|FocusChangeMask|  \
                                     StructureNotifyMask|EnterWindowMask)

extern void ioncore_x_connection_handler(int conn, void *unused);
extern void ioncore_flush();
extern void ioncore_get_event(XEvent *ev, long mask);

extern void ioncore_update_timestamp(XEvent *ev);
extern Time ioncore_get_timestamp();

/* Handlers to this hook should take XEvent* as parameter. */
extern WHook *ioncore_handle_event_alt;

extern void ioncore_mainloop();

#endif /* ION_IONCORE_EVENT_H */

Generated by  Doxygen 1.6.0   Back to index