On Thu, 19 May 2005 09:43:55 +0200 Lionel ORRY <[EMAIL PROTECTED]>
(Bbabbled:
(B
(B> Hi all,
(B> 
(B> I was wondering about making a new kind of edje background : i'd like to 
(B> create a uniform color everywhere (say black for now), and reveal only 
(B> the part of an underlayered picture which is around the mouse position.
(B> Imagine the mouse working like a light which reveals the closest part of 
(B> the background.
(B> 
(B> So i was wondering about the best way to achieve this... I've found some 
(B> dragable parts could be made with embryo scripts, but i don't know how 
(B> it works. Any help much appreciated !
(B> 
(B> thanks a lot to everybody for the very good work.
(B
(Bthat's kind of hard. how do you want to expose it? you can use clip rect then
(Boverlay it with a mask image to mask out pixels u dont want to see with black.
(Bthe the problem is getting this to follow the mouse. get_mouse() can get u the
(Bmosue coords relative to the object. get_geometry() can get u the x, y, w and h
(Bget the geometry of any part - u can put a part int he bg and stretch it over
(Beverything and use that as as a place to gather events - mouse,move will be a
(Bsignal emitted on mouse moves - so when that signal happens have the script for
(Bit get the mouse x,y - get the geometry of the base part - make sure the other
(Bparts in the edje dont accept events, then now u can caluclate a relative value
(B(x / width, y / height) as a float - then set those as drag values for a
(Bdragable that controls this clip and then overlay...
(B
(B> Lionel
(B> 
(B> 
(B> 
(B> -------------------------------------------------------
(B> This SF.Net email is sponsored by Oracle Space Sweepstakes
(B> Want to be the first software developer in space?
(B> Enter now for the Oracle Space Sweepstakes!
(B> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
(B> _______________________________________________
(B> enlightenment-devel mailing list
(B> [email protected]
(B> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
(B> 
(B
(B
(B-- 
(B------------- Codito, ergo sum - "I code, therefore I am" --------------
(BThe Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
$BMg9%B?(B                              [EMAIL PROTECTED]
(BTokyo, Japan ($BEl5~(B $BF|K\(B)
(B
(B
(B-------------------------------------------------------
(BThis SF.Net email is sponsored by Oracle Space Sweepstakes
(BWant to be the first software developer in space?
(BEnter now for the Oracle Space Sweepstakes!
(Bhttp://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
(B_______________________________________________
(Benlightenment-devel mailing list
([email protected]
(Bhttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to