Debian Codegraph @

clutter/mir/clutter-stage-mir.h

raw
1 /*
2 * Clutter.
3 *
4 * An OpenGL based 'interactive canvas' library.
5 *
6 * Copyright (C) 2014 Canonical Ltd.
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 * Marco Trevisan <[email protected]>
23 */
24
25 #ifndef __CLUTTER_STAGE_MIR_H__
26 #define __CLUTTER_STAGE_MIR_H__
27
28 #ifdef HAVE_CONFIG_H
29 #include "config.h"
30 #endif
31
32 #include <glib-object.h>
33 #include <clutter/clutter-stage.h>
34 #include "cogl/clutter-stage-cogl.h"
35
36 #define CLUTTER_TYPE_STAGE_MIR (_clutter_stage_mir_get_type ())
37 #define CLUTTER_STAGE_MIR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_MIR, ClutterStageMir))
38 #define CLUTTER_IS_STAGE_MIR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE_MIR))
39 #define CLUTTER_STAGE_MIR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_STAGE_MIR, ClutterStageMirClass))
40 #define CLUTTER_IS_STAGE_MIR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_STAGE_MIR))
41 #define CLUTTER_STAGE_MIR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_STAGE_MIR, ClutterStageMirClass))
42
43 typedef struct _ClutterStageMir ClutterStageMir;
44 typedef struct _ClutterStageMirClass ClutterStageMirClass;
45
46 struct _ClutterStageMir
47 {
48 ClutterStageCogl parent_instance;
49
50 MirSurfaceState surface_state;
51 MirMotionButton button_state;
52
53 gboolean foreign_mir_surface;
54 gboolean cursor_visible;
55 };
56
57 struct _ClutterStageMirClass
58 {
59 ClutterStageCoglClass parent_class;
60 };
61
62 GType _clutter_stage_mir_get_type (void) G_GNUC_CONST;
63
64 #endif /* __CLUTTER_STAGE_MIR_H__ */