Thanks. I had thought about it and gave it a try after your post. For some
occasions it will work and for some disabling the parent's event handling
will lead to problems. I will work on the possible use case scenarios.

I have strong background in Flash programming and I'm trying to understand
the similarities and differences between Clutter and Flash Events. Here is a
simple event application that shows how Flash Player is handling events with
parent, child mouseOver, rollOver behavior:
*http://lyciasoft.com/tests/events/flash/
*
The Flash event code is pretty straightforward, only the default calls and
settings are used.(i.e all "actors" are reactive and do not show
the hand cursor. Only Parent will show the hand cursor as it is set
exclusively.)

par.useHandCursor = true;
par.addEventListener("mouseOver",parOnMouseOver);
par.addEventListener("rollOver",parOnRollOver);

child1.addEventListener("mouseOver",childOnMouseOver);
child2.addEventListener("mouseOver",childOnMouseOver);

You need to look at it from Firefox w/Firebug plugin as application writes
to the Firebug console to report what event is triggered.

Hopefully in the near future I will have more comparisons, similarities and
use cases.




On Mon, Mar 21, 2011 at 5:45 PM, Neil Roberts <[email protected]> wrote:

> Veli Ogla Sungutay <[email protected]> wrote:
>
> > However, when two textures are inside a container, pick works on the
> > rectangular boundaries, disregarding the alpha of the each texture. For
> this
> > case can you please suggest any solutions?
>
> Just to check I understand correctly, are you saying that when you have
> one of these ClutterCairoTextures within in a ClutterGroup (for example)
> then clicking anywhere within the rectangle of the allocation of the
> group causes a button press event to be fired on the group?
>
> One way to workaround this may be to set ‘reactive’ on the group to
> FALSE and make sure the children are reactive instead. That way when of
> the textures are clicked a button press event would be emitted for the
> texture instead of the group. In Clutter the events bubble up through
> the actor hierarchy so the button press event signal would also still be
> emitted for the group.
>
> Hope that helps.
>
> Regards,
> - Neil
>



-- 
Veli Sungutay
http://www.lyciasoft.com
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to