1 /*
2  * Clutter.
3  *
4  * An OpenGL based 'interactive canvas' library.
5  *
6  * Copyright (C) 2010,2011  Intel Corporation.
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  *  Kristian Høgsberg
25  */
26 
27 #ifndef __CLUTTER_STAGE_WAYLAND_H__
28 #define __CLUTTER_STAGE_WAYLAND_H__
29 
30 #ifdef HAVE_CONFIG_H
31 #include "config.h"
32 #endif
33 
34 #include <glib-object.h>
35 #include <clutter/clutter-stage.h>
36 
37 #include "cogl/clutter-stage-cogl.h"
38 
39 #define CLUTTER_TYPE_STAGE_WAYLAND                  (_clutter_stage_wayland_get_type ())
40 #define CLUTTER_STAGE_WAYLAND(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_WAYLAND, ClutterStageWayland))
41 #define CLUTTER_IS_STAGE_WAYLAND(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE_WAYLAND))
42 #define CLUTTER_STAGE_WAYLAND_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_STAGE_WAYLAND, ClutterStageWaylandClass))
43 #define CLUTTER_IS_STAGE_WAYLAND_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_STAGE_WAYLAND))
44 #define CLUTTER_STAGE_WAYLAND_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_STAGE_WAYLAND, ClutterStageWaylandClass))
45 
46 typedef struct _ClutterStageWayland         ClutterStageWayland;
47 typedef struct _ClutterStageWaylandClass    ClutterStageWaylandClass;
48 
49 struct _ClutterStageWayland
50 {
51   ClutterStageCogl parent_instance;
52 
53   struct wl_surface *wayland_surface;
54   struct wl_shell_surface *wayland_shell_surface;
55   gboolean fullscreen;
56   gboolean foreign_wl_surface;
57   gboolean shown;
58   gboolean cursor_visible;
59 };
60 
61 struct _ClutterStageWaylandClass
62 {
63   ClutterStageCoglClass parent_class;
64 };
65 
66 GType _clutter_stage_wayland_get_type (void) G_GNUC_CONST;
67 
68 #endif /* __CLUTTER_STAGE_WAYLAND_H__ */
69