SCIM Bridge 0.4.x
scim-bridge-client-key-event-utility-qt.h
Go to the documentation of this file.
1/*
2 * SCIM Bridge
3 *
4 * Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
5 *
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation and
10 * appearing in the file LICENSE.LGPL included in the package of this file.
11 * You can also redistribute it and/or modify it under the terms of
12 * the GNU General Public License as published by the Free Software Foundation and
13 * appearing in the file LICENSE.GPL included in the package of this file.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 */
19
26#ifndef SCIMBRIDGECLIENTKEYEVENTUTILITYQT_H_
27#define SCIMBRIDGECLIENTKEYEVENTUTILITYQT_H_
28
29#include "scim-bridge.h"
32
34
35#ifdef Q_WS_X11
36#include <X11/Xlib.h>
37#include <X11/keysym.h>
38#include <X11/Xutil.h>
39static const int XKeyPress = KeyPress;
40static const int XKeyRelease = KeyRelease;
41#undef KeyPress
42#undef KeyRelease
43#endif
44
45class QKeyEvent;
46
53QKeyEvent *scim_bridge_key_event_bridge_to_qt (const ScimBridgeKeyEvent *bridge_key_event);
54
61ScimBridgeKeyEvent *scim_bridge_key_event_qt_to_bridge (const QKeyEvent *qt_key_event);
62
63#ifdef Q_WS_X11
72XEvent *scim_bridge_key_event_bridge_to_x11 (const ScimBridgeKeyEvent *bridge_key_event, Display *display, WId window_id);
73
74
81ScimBridgeKeyEvent* scim_bridge_key_event_x11_to_bridge (const XEvent *x11_event);
82#endif
83
84#endif /*SCIMBRIDGECLIENTKEYEVENTUTILITYQT_H_*/
This is the common header for qt client of scim-bridge.
QKeyEvent * scim_bridge_key_event_bridge_to_qt(const ScimBridgeKeyEvent *bridge_key_event)
Definition scim-bridge-client-key-event-utility-qt.cpp:174
ScimBridgeKeyEvent * scim_bridge_key_event_qt_to_bridge(const QKeyEvent *qt_key_event)
Definition scim-bridge-client-key-event-utility-qt.cpp:236
This header describes about key codes.
This header describes about key events.
This header describes about fundamental definitions of scim-bridge.
Definition scim-bridge-key-event.c:39