On Thu, 2007-12-13 at 13:54 +0200, Tommi Komulainen wrote:
> I finally managed to have a quick look through it and have some
> comments and questions I found lacking:
>
> Tutorial says 'Each Clutter application contains at least one
> ClutterStage' . IIRC currently clutter supports only one stage at a
> time. Then again, I haven't used clutter-gtk, which might lift that
> limitation. Worth mentioning I think.
no: we are currently limited to one stage per process, even for
clutter-gtk. I have a branch in my personal git repository[1] that adds
multiple stages support, but its a bit out of date and needs more work
on the rendering pipeline to compensate for multiple windows. it's not
impossible, I think.
> Events:
> There's clutter_set_motion_events_enabled(TRUE); and
> clutter_actor_set_reactive (rect, TRUE); kind of hidden in the code.
> It would be a good idea to mention those in the text as well.
the motion events are now enabled by default, since we were able to
throttle down the event delivery frequency that represented the
performance hit that disabled it in the first place. the call is still
there because:
- you might want to disable it (and the documentation clearly
states what you loose if you do)
- you might want to toggle it
> How is memory management for timelines meant to be done, i.e. when is
> it safe to unref a timeline? (Just had a situation where I wanted to
> make a fire and forget timeline and timeline_new(); start(); unref();
> didn't actually complete the timeline.)
yep: you need to keep the timelines and behaviours alive for the entire
length of the animation.
> Implementing actors: which functions are expected to be chained to
> parent? Before or after your own code?
just for reference:
- realize, show, hide, unrealize and request_coords are all expected
to chain up to the relative parent class virtual function, usually
at the end of the function itself (like dispose and finalize)...
- but realize and unrealized can also be chained up beforehand if you
rely on the actor flags to be set/unset respectively
ciao,
Emmanuele.
--
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com
--
To unsubscribe send a mail to [EMAIL PROTECTED]