2 * An OpenGL based 'interactive canvas' library.
3 * Authored By Matthew Allum <mallum@openedhand.com>
4 * Copyright (C) 2006-2007 OpenedHand
5 * 2011 Giovanni Campagna <scampa.giovanni@gmail.com>
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.
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.
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/>.
23 #ifndef __CLUTTER_STAGE_GDK_H__
24 #define __CLUTTER_STAGE_GDK_H__
26 #include <clutter/clutter-group.h>
27 #include <clutter/clutter-stage.h>
30 #include "clutter-backend-gdk.h"
31 #include "cogl/clutter-stage-cogl.h"
35 #define CLUTTER_TYPE_STAGE_GDK (_clutter_stage_gdk_get_type ())
36 #define CLUTTER_STAGE_GDK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_GDK, ClutterStageGdk))
37 #define CLUTTER_IS_STAGE_GDK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE_GDK))
38 #define CLUTTER_STAGE_GDK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_STAGE_GDK, ClutterStageGdkClass))
39 #define CLUTTER_IS_STAGE_GDK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_STAGE_GDK))
40 #define CLUTTER_STAGE_GDK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_STAGE_GDK, ClutterStageGdkClass))
42 typedef struct _ClutterStageGdk ClutterStageGdk;
43 typedef struct _ClutterStageGdkClass ClutterStageGdkClass;
45 struct _ClutterStageGdk
47 ClutterStageCogl parent_instance;
50 GdkCursor *blank_cursor;
52 gboolean foreign_window;
55 struct _ClutterStageGdkClass
57 ClutterStageCoglClass parent_class;
60 #define CLUTTER_STAGE_GDK_EVENT_MASK \
61 (GDK_STRUCTURE_MASK | \
62 GDK_FOCUS_CHANGE_MASK | \
64 GDK_PROPERTY_CHANGE_MASK | \
65 GDK_ENTER_NOTIFY_MASK | \
66 GDK_LEAVE_NOTIFY_MASK | \
67 GDK_KEY_PRESS_MASK | \
68 GDK_KEY_RELEASE_MASK | \
69 GDK_BUTTON_PRESS_MASK | \
70 GDK_BUTTON_RELEASE_MASK | \
71 GDK_POINTER_MOTION_MASK | \
74 GType _clutter_stage_gdk_get_type (void) G_GNUC_CONST;
76 void _clutter_stage_gdk_update_foreign_event_mask (CoglOnscreen *onscreen,
82 #endif /* __CLUTTER_STAGE_H__ */