On Tue, 2008-02-26 at 14:03 +0000, Matthew Allum wrote:
> Hi;
>
> On Tue, 2008-02-26 at 14:00 +0100, Murray Cumming wrote:
> >
> > Thanks. I have written up the basics of implementing a layout container
> > in 0.6 here:
> > http://www.openismus.com/misc/clutter_tutorial/docs/tutorial/html/apas03.html
> >
> > With a very simple HBox-like example:
> > http://www.openismus.com/misc/clutter_tutorial/docs/tutorial/html/apas04.html
> >
> > I would really appreciate it if you could review that and tell me about
> > whatever errors I've (surely) made.
> >
>
> Could well be worth mentioning that an implementation of the pick()
> method is usually also needed. Look at what ClutterGroup does.
Could you explain a bit more about this, please? It seems to be
something to do with focus/reactivity, maybe even involving a drawing an
outline of the actor sometimes, though I don't think I've ever seen such
a thing in a clutter program.
static void
clutter_group_pick (ClutterActor *actor,
const ClutterColor *color)
{
/* Chain up so we get a bounding box pained (if we are reactive) */
CLUTTER_ACTOR_CLASS (clutter_group_parent_class)->pick (actor, color);
/* Just forward to the paint call which in turn will trigger
* the child actors also getting 'picked'.
*/
if (CLUTTER_ACTOR_IS_MAPPED (actor))
clutter_group_paint (actor);
}
--
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com
>
--
To unsubscribe send a mail to [EMAIL PROTECTED]