4 * An OpenGL based 'interactive canvas' library.
6 * Copyright © 2010, 2011 Intel Corp.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 * Author: Emmanuele Bassi <ebassi@linux.intel.com>
24 #ifndef __CLUTTER_INPUT_DEVICE_X11_H__
25 #define __CLUTTER_INPUT_DEVICE_X11_H__
27 #include <clutter/clutter-input-device.h>
30 #include "clutter-stage-x11.h"
34 #define CLUTTER_TYPE_INPUT_DEVICE_X11 (_clutter_input_device_x11_get_type ())
35 #define CLUTTER_INPUT_DEVICE_X11(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_INPUT_DEVICE_X11, ClutterInputDeviceX11))
36 #define CLUTTER_IS_INPUT_DEVICE_X11(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_INPUT_DEVICE_X11))
38 typedef struct _ClutterInputDeviceX11 ClutterInputDeviceX11;
40 GType _clutter_input_device_x11_get_type (void) G_GNUC_CONST;
42 void _clutter_input_device_x11_set_keycodes (ClutterInputDeviceX11 *device_x11,
45 int _clutter_input_device_x11_get_min_keycode (ClutterInputDeviceX11 *device_x11);
46 int _clutter_input_device_x11_get_max_keycode (ClutterInputDeviceX11 *device_x11);
48 gboolean _clutter_input_device_x11_translate_xi_event (ClutterInputDeviceX11 *device_x11,
49 ClutterStageX11 *stage_x11,
55 #endif /* __CLUTTER_INPUT_DEVICE_X11_H__ */