00001 // -*- c++ -*- 00002 #ifndef _LIBCLUTTERMM_EVENT_H 00003 #define _LIBCLUTTERMM_EVENT_H 00004 /* 00005 * Copyright 2008 Jonathon Jongsma 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free 00019 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 */ 00021 00022 #include <glibmm.h> 00023 #include <cluttermm/types.h> 00024 #include <clutter/clutter-event.h> 00025 // We also need these in C++: 00026 #include <clutter/clutter-keysyms.h> 00027 00028 namespace Clutter 00029 { 00030 00031 // TODO: Wrap the functions that take a ClutterEvent*. I guess we need proper 00032 // C++ inheritance for the events to allow passing a ClutterEventButton* to 00033 // a function taking a ClutterEvent*, for example. 00034 00038 bool events_pending(); 00039 00044 guint key_event_symbol(KeyEvent* keyev); 00045 00050 guint16 key_event_code(KeyEvent* keyev); 00051 00056 guint32 key_event_unicode(KeyEvent* keyev); 00057 00064 guint32 keysym_to_unicode(guint keyval); 00065 00066 } //namespace Clutter 00067 00068 #endif //_LIBCLUTTERMM_EVENT_H 00069