| 1 | /* |
| 2 | * Copyright (C) 2010, Intel Corporation. |
| 3 | * |
| 4 | * Author: Raymond Liu <[email protected]> |
| 5 | * |
| 6 | * This library is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Lesser General Public License |
| 8 | * version 2.1 as published by the Free Software Foundation. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 18 | * 02110-1301 USA |
| 19 | */ |
| 20 | |
| 21 | #ifndef _QT_GTK_TRANSLATE_H |
| 22 | #define _QT_GTK_TRANSLATE_H |
| 23 | |
| 24 | #include <gtk/gtk.h> |
| 25 | |
| 26 | G_BEGIN_DECLS |
| 27 | |
| 28 | GdkEventKey *compose_gdk_keyevent(GdkEventType type, guint keyval, guint state, GdkWindow *window); |
| 29 | GdkEventKey *qt_key_event_to_gdk(int type, int key, int modifiers, const char *text, GdkWindow *window); |
| 30 | gboolean gdk_key_event_to_qt(GdkEventKey *event, int *type, int *key, int *modifier); |
| 31 | |
| 32 | G_END_DECLS |
| 33 | |
| 34 | #endif //_QT_GTK_TRANSLATE_H |