On Tue, 2 Dec 2008 21:02:54 +0100 "Hendrik Siedelmann"
<[EMAIL PROTECTED]> babbled:

> 2008/11/30 The Rasterman Carsten Haitzler <[EMAIL PROTECTED]>:
> > On Sun, 30 Nov 2008 19:27:35 +0100 "Hendrik Siedelmann"
> > <[EMAIL PROTECTED]> babbled:
> >
> >> Hi,
> >>
> >> while fooling around with elementary trying to write some widgets I
> >> found a pretty huge limitation in edje.
> >> I was writing a page flip widget to be used for example for slideshow,
> >> document viewer but also for page switching using cursor/finger on
> >> touchscreen. But there seems to be no way to interaktiv set the
> >> transition between two states in edje. For example I want to blend
> >> between two parts depending on how far the cursor moved while pressed
> >> down. This way mouse gestures would get visualised by a preview of
> >> what would happen. But there I found no way to do this in edje one can
> >> only do the full transition...
> >
> > for this - you need to use embryo script {}... it is possible - with a bit
> > of thought and complexity and custom states :)
> 
> Do you mean set_tween_state? Is there a reason this is not available
> over the c interface?

beacuse this is meant to be abstracted - c shouldnt be playing with stats of
parts directly. you can talk to the edje via messages - these are used in many
places in e and efl to abstract apis between edje and c code.

> So now I'd just pass the value I want from my program over a unused
> color class, emit a signal and set this value over embryo. But this is
> probably not what you meant, it's not complex nor does it require
> extra states. But instead it's very bad style :D.
> What solution would you propose?

use edje messages. battery module does this - exquisite does... done in other
places too! they can pass arbitrary data back and forth.

> >> So is there (or is planned)
> >> - something like edje_object_part_state_set to manually set the current
> >> state or (in my opinion better because it is better animated)
> >> - transition: INTERAKIV which would on every animator tick call some
> >> callback to get the current speed of transition. This would have the
> >> benefit that it could smooth the speed values it gets, so the
> >> animation is always smooth even if coming from bad real data
> >> (touchscreen position, acceleromter data ...).
> >>
> >> Or is there another way to do what I want? For know I'll propably just
> >> create some intermediate states, but thats not really a solution.
> >>
> >> hendrik
> >>
> >> -------------------------------------------------------------------------
> >> 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
> >>
> >
> >
> > --
> > ------------- Codito, ergo sum - "I code, therefore I am" --------------
> > The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
> >
> >
> 
> hendrik
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]


-------------------------------------------------------------------------
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