Release Clutter 1.11.4 (snapshot)
[profile/ivi/clutter.git] / clutter / clutter-stage-manager.h
1 /*
2  * Clutter.
3  *
4  * An OpenGL based 'interactive canvas' library.
5  *
6  * Copyright (C) 2008 OpenedHand
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  * Author: Emmanuele Bassi <ebassi@linux.intel.com>
22  */
23
24 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
25 #error "Only <clutter/clutter.h> can be included directly."
26 #endif
27
28 #ifndef __CLUTTER_STAGE_MANAGER_H__
29 #define __CLUTTER_STAGE_MANAGER_H__
30
31 #include <clutter/clutter-types.h>
32
33 G_BEGIN_DECLS
34
35 #define CLUTTER_TYPE_STAGE_MANAGER              (clutter_stage_manager_get_type ())
36 #define CLUTTER_STAGE_MANAGER(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_MANAGER, ClutterStageManager))
37 #define CLUTTER_IS_STAGE_MANAGER(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE_MANAGER))
38 #define CLUTTER_STAGE_MANAGER_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_STAGE_MANAGER, ClutterStageManagerClass))
39 #define CLUTTER_IS_STAGE_MANAGER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_STAGE_MANAGER))
40 #define CLUTTER_STAGE_MANAGER_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_STAGE_MANAGER, ClutterStageManagerClass))
41
42 typedef struct _ClutterStageManager             ClutterStageManager;
43 typedef struct _ClutterStageManagerClass        ClutterStageManagerClass;
44
45 /**
46  * ClutterStageManager:
47  *
48  * The #ClutterStageManager structure is private.
49  *
50  * Since: 1.0
51  */
52
53 /**
54  * ClutterStageManagerClass:
55  *
56  * The #ClutterStageManagerClass structure contains only private data
57  * and should be accessed using the provided API
58  *
59  * Since: 1.0
60  */
61 struct _ClutterStageManagerClass
62 {
63   /*< private >*/
64   GObjectClass parent_class;
65
66   void (* stage_added)   (ClutterStageManager *stage_manager,
67                           ClutterStage        *stage);
68   void (* stage_removed) (ClutterStageManager *stage_manager,
69                           ClutterStage        *stage);
70 };
71
72 GType clutter_stage_manager_get_type (void) G_GNUC_CONST;
73
74 ClutterStageManager *clutter_stage_manager_get_default       (void);
75 ClutterStage *       clutter_stage_manager_get_default_stage (ClutterStageManager *stage_manager);
76 GSList *             clutter_stage_manager_list_stages       (ClutterStageManager *stage_manager);
77 const GSList *       clutter_stage_manager_peek_stages       (ClutterStageManager *stage_manager);
78
79 G_END_DECLS
80
81 #endif /* __CLUTTER_STAGE_MANAGER_H__ */