2006-12-12 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Tue, 12 Dec 2006 20:20:04 +0000 (20:20 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Tue, 12 Dec 2006 20:20:04 +0000 (20:20 +0000)
commit10fbfb16598dd7613248a562387f8555f47add66
treeec04eef7fc364c1d17d17fbb719188c56dbb5aa2
parent1d1dc43674290e3e58eae32309f3415c405b12f9
2006-12-12  Emmanuele Bassi  <ebassi@openedhand.com>

Rework part of the show/hide machinery.  Allow groups sub-classes
and composite actors to override show_all/hide_all in order to
decide which children they wish to show/hide.  This means that
if an actor overrides the default show/hide virtual methods, it'll
have to chain up to the parent class show/hide.  While we're at it,
provide the fully recursive clutter_actor_show_all() and
clutter_actor_hide_all() methods.

* clutter/clutter-behaviour-path.c: Add apidoc for the ClutterKnot
functions; add pathological equality case for clutter_knot_equal().

* clutter/clutter-event.h:
* clutter/clutter-feature.h:
* clutter/clutter-behaviour.c:
* clutter/clutter-behaviour-scale.c:Fix parameters name so that
gtk-doc doesn't complain.

* clutter/clutter-actor.c:
* clutter/clutter-event.c: Add apidoc

* clutter/clutter-actor.h:
* clutter/clutter-actor.c: Add a clutter_actor_show_all() and a
clutter_actor_hide_all() functions; provide a mechanism for
groups and composited actors to programmatically select what to
show/hide when clutter_actor_show_all() and clutter_actor_hide_all()
are called.  If you are overriding the ClutterActor::show or
the ClutterActor::hide virtual methods you should chain up with
the parent class.

* clutter/clutter-group.c: Override show_all and hide_all and
recursively show/hide every child inside the group;
clutter_group_show_all() and clutter_group_hide_all() remain as non
recursive versions of clutter_actor_show_all() and
clutter_actor_hide_all() (maybe we should rename them in order
to avoid name clashes with the bindings).

* clutter/clutter-stage.c:
* clutter/clutter-texture.c: Chain up with parent class show
and hide vfuncs.

* clutter/clutter-clone-texture.h:
* clutter/clutter-clone-texture.c: Provide API for changing the
parent texture of a clone texture actor.

* examples/behave.c:
* examples/super-oh.c:
* examples/test.c: Use clutter_actor_show_all() instead of
clutter_group_show_all().
24 files changed:
ChangeLog
clutter/clutter-actor.c
clutter/clutter-actor.h
clutter/clutter-behaviour-path.c
clutter/clutter-behaviour-scale.c
clutter/clutter-behaviour.c
clutter/clutter-clone-texture.c
clutter/clutter-clone-texture.h
clutter/clutter-event.c
clutter/clutter-event.h
clutter/clutter-feature.h
clutter/clutter-group.c
clutter/clutter-stage.c
clutter/clutter-texture.c
clutter/clutter-texture.h
doc/reference/clutter-sections.txt
doc/reference/tmpl/clutter-actor.sgml
doc/reference/tmpl/clutter-color.sgml
doc/reference/tmpl/clutter-event.sgml
doc/reference/tmpl/clutter-feature.sgml
doc/reference/tmpl/clutter-texture.sgml
examples/behave.c
examples/super-oh.c
examples/test.c