cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=acc481336587e362e095e61702078289bd978dcd

commit acc481336587e362e095e61702078289bd978dcd
Author: kumar navneet <k.navn...@samsung.com>
Date:   Tue May 19 12:37:13 2015 +0200

    edje: add cubic bezier transition example.
    
    Summary:
    Example was missing for cubic bezier transition, hence added the same.
    Signed-Off By: Shilpa Singh <shilpa.si...@samsung.com>
    
    Test Plan: bezier-transition-example.edc added
    
    Reviewers: shilpasingh, cedric
    
    Subscribers: poornima.srinivasan, cedric
    
    Differential Revision: https://phab.enlightenment.org/D2533
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/examples/edje/Makefile.am                   |  4 +-
 src/examples/edje/bezier-transition-example.edc | 52 +++++++++++++++++++++++++
 2 files changed, 55 insertions(+), 1 deletion(-)

diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index 6b8e3cb..cdf1ac3 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -47,7 +47,9 @@ table.edc \
 text.edc \
 toggle_using_filter.edc \
 box_example.edc \
-embryo_tween_anim.edc
+embryo_tween_anim.edc \
+embryo_set_state_anim.edc \
+bezier-transition-example.edc
 
 DIST_EDCS = $(EDCS)
 
diff --git a/src/examples/edje/bezier-transition-example.edc 
b/src/examples/edje/bezier-transition-example.edc
new file mode 100644
index 0000000..b07fc28
--- /dev/null
+++ b/src/examples/edje/bezier-transition-example.edc
@@ -0,0 +1,52 @@
+collections {
+   group { name: "main";
+      script{
+        public test(val, Float:pos)
+          {
+             set_state_anim(PART:"red_rect", "default", 1.0, CUBIC_BEZIER, 
pos, 0.27, 1.29, 1, -0.25);
+          }
+      }
+      parts {
+         part { name: "bg";
+            type: RECT;
+            description { state: "default" 0.0;
+               color: 255 255 255 255;
+            }
+         }
+         part { name: "label";
+            type: TEXT;
+            description { state: "default" 0.0;
+               color: 0 0 0 255;
+               text {
+                  text: "Click me.";
+                  font: "Sans";
+                  size: 12;
+                  align: 0.0 0.7;
+               }
+            }
+         }
+         part { name: "red_rect";
+            type: RECT;
+            description { state: "default" 0.0;
+               color: 0 0 255 255;
+               max: 30 30;
+               align: 0.1 0.2;
+            }
+            description { state: "default" 1.0;
+               inherit: "default" 0.0;
+               color: 0 0 255 255;
+               align: 0.9 0.2;
+            }
+         }
+      }
+      programs {
+         program {
+            signal: "mouse,down,1";
+            source: "label";
+            script {
+              anim(5.5, "test", 1);
+            }
+         }
+      }
+   }
+}

-- 


Reply via email to