From: Ravi Nanjundappa Date: Tue, 25 Oct 2016 14:26:32 +0000 (+0530) Subject: DALi C# binding - Adding Animation constructor to accept duration in milli seconds X-Git-Tag: dali_1.2.12~5^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=2278178efcda84f2e9f9200595f46311fe7b3d55 DALi C# binding - Adding Animation constructor to accept duration in milli seconds Inserted the code for Animation constructor which accept integer value for duration in milli seconds. Now, _animation = new Animation(10000); will create Animation object with duration of 1000 ms (1s). We can still use _animation = new Animation(1.0f); to create the same. We can also use _animation.DurationMillSecs = 10000; // 10 ms Change-Id: Ie194280a9043f395d967f12b8835c66ae22c627f Signed-off-by: Ravi Nanjundappa --- diff --git a/plugins/dali-swig/SWIG/events/animation-event.i b/plugins/dali-swig/SWIG/events/animation-event.i index 4690317..0581d4e 100644 --- a/plugins/dali-swig/SWIG/events/animation-event.i +++ b/plugins/dali-swig/SWIG/events/animation-event.i @@ -185,6 +185,19 @@ using System.Runtime.InteropServices; } } + public int DurationMilliSecs + { + set + { + SetDuration(value/1000); + } + get + { + int ret = (int) GetDuration() * 1000; + return ret; + } + } + public AlphaFunction DefaultAlphaFunction { set