On Wed, 27 Apr 2005 21:22:25 -0700 Lucas Watkins <[EMAIL PROTECTED]> babbled:
(B
(B> Hi all,
(B> 
(B> I was trying to figure out how to get the mouse pointer to change shape 
(B> at appropriate places in the window manager (like on resizable borders), 
(B> and it seemed to me that the most appropriate way to do this would be to 
(B> add a new action, POINTER_SET, to the edje syntax. Then the mouse 
(B> pointers could be themed just like everything else.
(B> 
(B> I worked out how to do it all, except (and this is probably a stupid 
(B> question) I need an Ecore_Evas struct in order to use the 
(B> ecore_evas_cursor_set function, and I don't know how to get that from 
(B> either the Edje struct or the Edje_Program struct passed to 
(B> _edje_program_run. How do I get at that?
(B
(Byou don't. basically it's out of edje's control. in all reality the best thing 
(Byou could do is have the edje programs in the theme emit signals saying 
(B"set_pointer" "move_resize", "set_pointer" "busy"
(Betc. - then e has to go do it. the thing is that evas knows nothing of cursors 
(Band edje only knows things as far as evas goes :)
(B
(B> This may be an exceptionally stupid way to implement this, but I would 
(B> love it if you could set me on the right track.
(B
(Bi'd say  you're on the wrong track. :) you can just emit signals and have the 
(Bcontrolling app listen for them and "do the right thing" as it sees fit :) 
(Bwhich is 0 patches to edje and really only a few callback added to edje objects 
(Bin e17 - and those callbacks set the cursor appropriately :) u will want to 
(Bexpand the pointer subsystem to allow a stack of states so u wouldn't SET the 
(Bcursor - i'd suggest more of a push and pop - push a new cursor, pop it to get 
(Bback the old one that was there before :) you should be able to remove states 
(Bfrom the cursor stack though at any time. (as a previous cursor state may now 
(Bno longer exist). so when u push a state - u get back a handle you can keep. 
(Byou can literally rip this state right out of the stack using the handle. you 
(Bshould also be able to change the cursor type attached to that handle to change 
(Bthe current state without a push or pop.
(B
(B> Thanks,
(B> Lucas Watkins
(B> 
(B> 
(B> -------------------------------------------------------
(B> SF.Net email is sponsored by: Tell us your software development plans!
(B> Take this survey and enter to win a one-year sub to SourceForge.net
(B> Plus IDC's 2005 look-ahead and a copy of this survey
(B> Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
(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-------------------------------------------------------
(BSF.Net email is sponsored by: Tell us your software development plans!
(BTake this survey and enter to win a one-year sub to SourceForge.net
(BPlus IDC's 2005 look-ahead and a copy of this survey
(BClick here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
(B_______________________________________________
(Benlightenment-devel mailing list
([email protected]
(Bhttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to