Bind KeyFrames APIs 18/253118/1
authorJiyun Yang <ji.yang@samsung.com>
Thu, 4 Feb 2021 16:12:45 +0000 (01:12 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Thu, 4 Feb 2021 16:12:48 +0000 (01:12 +0900)
* GetKeyFrameCount
* GetKeyFrame

Change-Id: I59c05025573e8d5578b2beb889912ff39eb33a5f
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
dali-csharp-binder/src/dali_wrap.cpp

index 6cfdd8f..04d2a27 100755 (executable)
@@ -425,6 +425,7 @@ void SWIG_CSharpException(int code, const char *msg) {
 #include <dali-toolkit/dali-toolkit.h>
 
 #include <dali/devel-api/actors/actor-devel.h>
+#include <dali/devel-api/animation/key-frames-devel.h>
 #include <dali/devel-api/common/stage-devel.h>
 #include <dali/devel-api/events/key-event-devel.h>
 #include <dali/devel-api/events/wheel-event-devel.h>
@@ -26822,6 +26823,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_KeyFrames_Add__SWIG_1(void * jarg1, floa
 
 }
 
+SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_KeyFrames_GetKeyFrameCount(void* keyFrames)
+{
+  return (unsigned int) Dali::DevelKeyFrames::GetKeyFrameCount(*((Dali::KeyFrames*)keyFrames));
+}
+
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_KeyFrames_GetKeyFrame(void* keyFrames, unsigned int index, float* time, void* value)
+{
+  Dali::DevelKeyFrames::GetKeyFrame(*((Dali::KeyFrames*)keyFrames), (size_t)index, *time, *((Property::Value*)value));
+}
 
 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Path_Property_POINTS_get() {
   int jresult ;