On Thu, Oct 30, 2008 at 4:47 PM, Matt Barclay <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm working on an app that let's the user control a chair.  In the
> app, the user will click on the headrest, armrest, seatback, or
> footrest to control its position.  Since these pieces of the chair are
> not rectangles, I'm planning on using some Embryo scripting to get the
> mouse coordinates on the chair, then figure out if the click is inside
> of the controllable areas and emit a signal.  A much cleaner approach,
> I think, would be a part type POLY that would let edje do the heavy
> lifting and behave just like RECT.  I can't be the first person to run
> into this challenge.  How have you solved it in the past?  How hard
> would it be to add POLY to edje?  I see evas already has support for
> polygons.

evas_object_precise_is_inside_set(image_object, 1)

that will ignore transparent areas.



-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [EMAIL PROTECTED]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to