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 // We also need these in C++: 00025 #include <clutter/clutter.h> 00026 00027 namespace Clutter 00028 { 00029 00030 // TODO: Wrap the functions that take a ClutterEvent*. I guess we need proper 00031 // C++ inheritance for the events to allow passing a ClutterEventButton* to 00032 // a function taking a ClutterEvent*, for example. 00033 00037 bool events_pending(); 00038 00043 guint key_event_get_symbol(KeyEvent* keyev); 00044 00049 guint16 key_event_get_code(KeyEvent* keyev); 00050 00055 guint32 key_event_get_unicode(KeyEvent* keyev); 00056 00063 guint32 keysym_to_unicode(guint keyval); 00064 00065 } //namespace Clutter 00066 00067 #endif //_LIBCLUTTERMM_EVENT_H 00068