Debian Codegraph @

clutter/gdk/clutter-backend-gdk.h

raw
1 /* Clutter.
2 * An OpenGL based 'interactive canvas' library.
3 * Authored By Matthew Allum <[email protected]>
4 * Copyright (C) 2006-2007 OpenedHand
5 * 2011 Giovanni Campagna <[email protected]>
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; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 *
20 *
21 */
22
23 #ifndef __CLUTTER_BACKEND_GDK_H__
24 #define __CLUTTER_BACKEND_GDK_H__
25
26 #include <glib-object.h>
27 #include <clutter/clutter-event.h>
28 #include <gdk/gdk.h>
29
30 #include "clutter-gdk.h"
31
32 #include "clutter-backend-private.h"
33
34 G_BEGIN_DECLS
35
36 #define CLUTTER_TYPE_BACKEND_GDK (clutter_backend_gdk_get_type ())
37 #define CLUTTER_BACKEND_GDK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_BACKEND_GDK, ClutterBackendGdk))
38 #define CLUTTER_IS_BACKEND_GDK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_BACKEND_GDK))
39 #define CLUTTER_BACKEND_GDK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_BACKEND_GDK, ClutterBackendGdkClass))
40 #define CLUTTER_IS_BACKEND_GDK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_BACKEND_GDK))
41 #define CLUTTER_BACKEND_GDK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_BACKEND_GDK, ClutterBackendGdkClass))
42
43 typedef struct _ClutterBackendGdk ClutterBackendGdk;
44 typedef struct _ClutterBackendGdkClass ClutterBackendGdkClass;
45
46 struct _ClutterBackendGdk
47 {
48 ClutterBackend parent_instance;
49
50 GdkDisplay *display;
51 GdkScreen *screen;
52
53 ClutterDeviceManager *device_manager;
54 };
55
56 struct _ClutterBackendGdkClass
57 {
58 ClutterBackendClass parent_class;
59
60 /* nothing here, for now */
61 };
62
63 GType clutter_backend_gdk_get_type (void) G_GNUC_CONST;
64
65 ClutterBackend *clutter_backend_gdk_new (void);
66
67 void _clutter_backend_gdk_events_init (ClutterBackend *backend);
68
69 void _clutter_backend_gdk_update_setting (ClutterBackendGdk *backend,
70 const gchar *name);
71
72 G_END_DECLS
73
74 #endif /* __CLUTTER_BACKEND_GDK_H__ */