WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=773d814b2127b48d778f815c3be34dfd7b7cd2a1
commit 773d814b2127b48d778f815c3be34dfd7b7cd2a1 Author: jpeg <j...@videolan.org> Date: Tue Jul 14 01:30:10 2015 -0700 Wiki page state changed with summary [created] by jpeg --- pages/docs/efl/advanced/eflgfxfilter/state.txt | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/pages/docs/efl/advanced/eflgfxfilter/state.txt b/pages/docs/efl/advanced/eflgfxfilter/state.txt new file mode 100644 index 0000000..d308ee0 --- /dev/null +++ b/pages/docs/efl/advanced/eflgfxfilter/state.txt @@ -0,0 +1,36 @@ +Go back to [[:docs:efl:advanced:eflgfxfilters|Efl.Gfx.Filters]]. + +<note>Since EFL 1.15 (to be released in August 2015)</note> + +==== State ==== + +In order to allow developers and designers to implement animations based on the [[:docs:efl:advanced:eflgfxfilters|filters]], the ''state'' table gives enough information to the filter to implement a transition from one Edje state to another. + +When used from Edje (ie. from EDC), the ''state'' table contains data about the current and next states of the part being filtered (''TEXT'' or ''IMAGE''). + +=== Syntax === + +<code Lua> +state = { + color = <interpolated color>, + scale = <object scale>, + pos = <animation progress from 0 to 1, + cur = { + value = <constant state value defined in EDC>, + name = <state name defined in EDC> + }, + next = { + -- WARNING: next can be nil (when not in a transition) + value = <constant state value defined in EDC>, + name = <state name defined in EDC> + }, + text = { + -- WARNING: "text" is only valid for TEXT objects + outline = <text outline color>, + shadow = <text shadow color>, + glow = <text glow color>, + glow2 = <text glow color #2> + } +} +</code> + --