Debian Codegraph @

clutter/gdk/clutter-input-device-gdk.h

raw
1 /*
2 * Clutter.
3 *
4 * An OpenGL based 'interactive canvas' library.
5 *
6 * Copyright © 2011 Intel Corp.
7 *
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.
12 *
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.
17 *
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/>.
20 *
21 * Author: Emmanuele Bassi <[email protected]>
22 */
23
24 #ifndef __CLUTTER_INPUT_DEVICE_GDK_H__
25 #define __CLUTTER_INPUT_DEVICE_GDK_H__
26
27 #include <clutter/clutter-input-device.h>
28 #include <gdk/gdk.h>
29
30 #include "clutter-backend.h"
31 #include "clutter-device-manager-private.h"
32
33 G_BEGIN_DECLS
34
35 #define CLUTTER_TYPE_INPUT_DEVICE_GDK (_clutter_input_device_gdk_get_type ())
36 #define CLUTTER_INPUT_DEVICE_GDK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_INPUT_DEVICE_GDK, ClutterInputDeviceGdk))
37 #define CLUTTER_IS_INPUT_DEVICE_GDK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_INPUT_DEVICE_GDK))
38
39 typedef struct _ClutterInputDeviceGdk ClutterInputDeviceGdk;
40
41 struct _ClutterInputDeviceGdk
42 {
43 ClutterInputDevice parent;
44
45 GdkDevice *gdk_device;
46 };
47
48 GType _clutter_input_device_gdk_get_type (void) G_GNUC_CONST;
49
50 ClutterInputDevice * _clutter_input_device_gdk_new (ClutterDeviceManager *manager,
51 GdkDevice *device);
52
53 G_END_DECLS
54
55 #endif /* __CLUTTER_INPUT_DEVICE_GDK_H__ */