Debian Codegraph @

clutter/deprecated/clutter-stage.h

raw
1 /*
2 * Clutter.
3 *
4 * An OpenGL based 'interactive canvas' library.
5 *
6 * Copyright (C) 2011 Intel Corp
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
22 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
23 #error "Only <clutter/clutter.h> can be included directly."
24 #endif
25
26 #ifndef __CLUTTER_STAGE_DEPRECATED_H__
27 #define __CLUTTER_STAGE_DEPRECATED_H__
28
29 #include <clutter/clutter-types.h>
30
31 G_BEGIN_DECLS
32
33 #ifndef CLUTTER_DISABLE_DEPRECATED
34
35 /**
36 * CLUTTER_STAGE_WIDTH:
37 *
38 * Macro that evaluates to the width of the default stage
39 *
40 * Since: 0.2
41 *
42 * Deprecated: 1.2: Use clutter_actor_get_width() instead
43 */
44 #define CLUTTER_STAGE_WIDTH() (clutter_actor_get_width (clutter_stage_get_default ()))
45
46 /**
47 * CLUTTER_STAGE_HEIGHT:
48 *
49 * Macro that evaluates to the height of the default stage
50 *
51 * Since: 0.2
52 *
53 * Deprecated: 1.2: use clutter_actor_get_height() instead
54 */
55 #define CLUTTER_STAGE_HEIGHT() (clutter_actor_get_height (clutter_stage_get_default ()))
56
57 /* Commodity macro, for mallum only */
58 #define clutter_stage_add(stage,actor) G_STMT_START { \
59 if (CLUTTER_IS_STAGE ((stage)) && CLUTTER_IS_ACTOR ((actor))) \
60 { \
61 ClutterContainer *_container = (ClutterContainer *) (stage); \
62 ClutterActor *_actor = (ClutterActor *) (actor); \
63 clutter_container_add_actor (_container, _actor); \
64 } } G_STMT_END
65
66 #endif /* CLUTTER_DISABLE_DEPRECATED */
67
68 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_stage_new)
69 ClutterActor * clutter_stage_get_default (void);
70
71 CLUTTER_DEPRECATED_IN_1_10
72 gboolean clutter_stage_is_default (ClutterStage *stage);
73
74 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_queue_redraw)
75 void clutter_stage_queue_redraw (ClutterStage *stage);
76
77 CLUTTER_DEPRECATED_IN_1_10
78 void clutter_stage_set_use_fog (ClutterStage *stage,
79 gboolean fog);
80
81 CLUTTER_DEPRECATED_IN_1_10
82 gboolean clutter_stage_get_use_fog (ClutterStage *stage);
83
84 CLUTTER_DEPRECATED_IN_1_10
85 void clutter_stage_set_fog (ClutterStage *stage,
86 ClutterFog *fog);
87
88 CLUTTER_DEPRECATED_IN_1_10
89 void clutter_stage_get_fog (ClutterStage *stage,
90 ClutterFog *fog);
91
92 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_set_background_color)
93 void clutter_stage_set_color (ClutterStage *stage,
94 const ClutterColor *color);
95
96 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_get_background_color)
97 void clutter_stage_get_color (ClutterStage *stage,
98 ClutterColor *color);
99
100 G_END_DECLS
101
102 #endif /* __CLUTTER_STAGE_DEPRECATED_H__ */