Debian Codegraph @

clutter/egl/clutter-backend-eglnative.h

raw
1 /* Clutter.
2 * An OpenGL based 'interactive canvas' library.
3 *
4 * Copyright (C) 2006, 2007 OpenedHand
5 * Copyright (C) 2010 Intel Corp
6 * 2011 Giovanni Campagna <[email protected]>
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 * Authors:
22 * Matthew Allum
23 * Robert Bragg
24 */
25
26 #ifndef __CLUTTER_BACKEND_EGL_NATIVE_H__
27 #define __CLUTTER_BACKEND_EGL_NATIVE_H__
28
29 #include <glib-object.h>
30 #include <cogl/cogl.h>
31 #include <cogl/cogl-egl.h>
32 #include <clutter/clutter-event.h>
33 #include <clutter/clutter-backend.h>
34 #include <clutter/clutter-device-manager.h>
35
36 #include "clutter-backend-private.h"
37
38 G_BEGIN_DECLS
39
40 #define CLUTTER_TYPE_BACKEND_EGL_NATIVE (clutter_backend_egl_native_get_type ())
41 #define CLUTTER_BACKEND_EGL_NATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_BACKEND_EGL_NATIVE, ClutterBackendEglNative))
42 #define CLUTTER_IS_BACKEND_EGL_NATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_BACKEND_EGL_NATIVE))
43 #define CLUTTER_BACKEND_EGL_NATIVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_BACKEND_EGL_NATIVE, ClutterBackendEglNativeClass))
44 #define CLUTTER_IS_BACKEND_EGL_NATIVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_BACKEND_EGL_NATIVE))
45 #define CLUTTER_BACKEND_EGL_NATIVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_BACKEND_EGL_NATIVE, ClutterBackendEglNativeClass))
46
47 typedef struct _ClutterBackendEglNative ClutterBackendEglNative;
48 typedef struct _ClutterBackendEglNativeClass ClutterBackendEglNativeClass;
49
50 struct _ClutterBackendEglNative
51 {
52 ClutterBackend parent_instance;
53
54 /* device manager (ie evdev) */
55 ClutterDeviceManager *device_manager;
56
57 /* event source */
58 GSource *event_source;
59
60 /* event timer */
61 GTimer *event_timer;
62 };
63
64 struct _ClutterBackendEglNativeClass
65 {
66 ClutterBackendClass parent_class;
67 };
68
69 GType clutter_backend_egl_native_get_type (void) G_GNUC_CONST;
70
71 ClutterBackend *clutter_backend_egl_native_new (void);
72
73 G_END_DECLS
74
75 #endif /* __CLUTTER_BACKEND_EGL_NATIVE_H__ */