| 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_GROUP_DEPRECATED_H__ |
| 27 |
#define __CLUTTER_GROUP_DEPRECATED_H__ |
| 28 |
|
| 29 |
#include <clutter/clutter-types.h> |
| 30 |
#include <clutter/clutter-group.h> |
| 31 |
|
| 32 |
G_BEGIN_DECLS |
| 33 |
|
| 34 |
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_new) |
| 35 |
ClutterActor * clutter_group_new (void); |
| 36 |
|
| 37 |
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_get_child_at_index) |
| 38 |
ClutterActor * clutter_group_get_nth_child (ClutterGroup *self, |
| 39 |
gint index_); |
| 40 |
|
| 41 |
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_get_n_children) |
| 42 |
gint clutter_group_get_n_children (ClutterGroup *self); |
| 43 |
|
| 44 |
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_remove_all_children) |
| 45 |
void clutter_group_remove_all (ClutterGroup *self); |
| 46 |
|
| 47 |
#ifndef CLUTTER_DISABLE_DEPRECATED |
| 48 |
|
| 49 |
/* for Mr. Mallum only */ |
| 50 |
#define clutter_group_add(group,actor) G_STMT_START { \ |
| 51 |
ClutterActor *_actor = (ClutterActor *) (actor); \ |
| 52 |
if (CLUTTER_IS_GROUP ((group)) && CLUTTER_IS_ACTOR ((_actor))) \ |
| 53 |
{ \ |
| 54 |
ClutterContainer *_container = (ClutterContainer *) (group); \ |
| 55 |
clutter_container_add_actor (_container, _actor); \ |
| 56 |
} } G_STMT_END |
| 57 |
|
| 58 |
#endif /* CLUTTER_DISABLE_DEPRECATED */ |
| 59 |
|
| 60 |
G_END_DECLS |
| 61 |
|
| 62 |
#endif /* __CLUTTER_GROUP_DEPRECATED_H__ */ |