~elementary-os/elementaryos/os-patch-mutter-bionic

« back to all changes in this revision

Viewing changes to clutter/clutter/clutter-stage-manager.h

  • Committer: RabbitBot
  • Date: 2018-04-11 14:49:36 UTC
  • Revision ID: rabbitbot@elementary.io-20180411144936-hgymqa9d8d1xfpbh
Initial import, version 3.28.0-2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#ifndef __CLUTTER_STAGE_MANAGER_H__
 
25
#define __CLUTTER_STAGE_MANAGER_H__
 
26
 
 
27
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
 
28
#error "Only <clutter/clutter.h> can be included directly."
 
29
#endif
 
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
CLUTTER_AVAILABLE_IN_1_0
 
73
GType clutter_stage_manager_get_type (void) G_GNUC_CONST;
 
74
 
 
75
CLUTTER_AVAILABLE_IN_1_0
 
76
ClutterStageManager *clutter_stage_manager_get_default       (void);
 
77
CLUTTER_AVAILABLE_IN_1_0
 
78
ClutterStage *       clutter_stage_manager_get_default_stage (ClutterStageManager *stage_manager);
 
79
CLUTTER_AVAILABLE_IN_1_0
 
80
GSList *             clutter_stage_manager_list_stages       (ClutterStageManager *stage_manager);
 
81
CLUTTER_AVAILABLE_IN_1_0
 
82
const GSList *       clutter_stage_manager_peek_stages       (ClutterStageManager *stage_manager);
 
83
 
 
84
G_END_DECLS
 
85
 
 
86
#endif /* __CLUTTER_STAGE_MANAGER_H__ */