[cluttermm] Actor: Add add/insert/remove_child() and remove_all_children().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm] Actor: Add add/insert/remove_child() and remove_all_children().
- Date: Mon, 24 Mar 2014 09:31:51 +0000 (UTC)
commit 2fc5078cbeb37abc52f498507d2978b39e6d1d5e
Author: Ian Martin <martin_id vodafone co nz>
Date: Mon Mar 24 10:28:35 2014 +0100
Actor: Add add/insert/remove_child() and remove_all_children().
These changes are part of a patch in bug #725125 .
clutter/src/actor.hg | 9 +++++++++
clutter/src/clutter_methods.defs | 7 -------
2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/clutter/src/actor.hg b/clutter/src/actor.hg
index ecb6b6f..c6b8d64 100644
--- a/clutter/src/actor.hg
+++ b/clutter/src/actor.hg
@@ -296,6 +296,15 @@ _DEPRECATE_IFDEF_END
_WRAP_METHOD(void grab_key_focus(), clutter_actor_grab_key_focus)
+ _WRAP_METHOD(void add_child(const Glib::RefPtr<Actor>& child), clutter_actor_add_child)
+ _WRAP_METHOD(void insert_child_above(const Glib::RefPtr<Actor>& child, const Glib::RefPtr<Actor>&
sibling), clutter_actor_insert_child_above)
+ _WRAP_METHOD(void insert_child_at_index(const Glib::RefPtr<Actor>& child, int index{?}),
clutter_actor_insert_child_at_index)
+ _WRAP_METHOD(void insert_child_below(const Glib::RefPtr<Actor>& child, const Glib::RefPtr<Actor>&
sibling), clutter_actor_insert_child_below)
+ _WRAP_METHOD(void replace_child(const Glib::RefPtr<Actor>& old_child, const Glib::RefPtr<Actor>&
new_child), clutter_actor_replace_child)
+
+ _WRAP_METHOD(void remove_child(const Glib::RefPtr<Actor>& child), clutter_actor_remove_child )
+ _WRAP_METHOD(void remove_all_children(), clutter_actor_remove_all_children )
+
// Animation API
// Hand coded to use std::map instead of the 3 arguments used by C API
_IGNORE(clutter_actor_animatev, clutter_actor_animate_with_timelinev, clutter_actor_animate_with_alphav)
diff --git a/clutter/src/clutter_methods.defs b/clutter/src/clutter_methods.defs
index 2acec07..fb3dd81 100644
--- a/clutter/src/clutter_methods.defs
+++ b/clutter/src/clutter_methods.defs
@@ -10777,13 +10777,6 @@
)
)
-(define-function clutter_actor_add_child
- (c-name "clutter_actor_add_child")
- (return-type "and")
- (parameters
- )
-)
-
(define-method set_parent
(of-object "ClutterActor")
(c-name "clutter_actor_set_parent")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]