Refactoring transition and fadeTransition 48/262648/6
authorseungho <sbsh.baek@samsung.com>
Tue, 17 Aug 2021 07:05:51 +0000 (16:05 +0900)
committerseungho <sbsh.baek@samsung.com>
Fri, 27 Aug 2021 06:01:39 +0000 (15:01 +0900)
Change-Id: I8dc0d2f276540a0c2926fbfc96c945254d682e0e
Signed-off-by: seungho <sbsh.baek@samsung.com>
dali-csharp-binder/file.list
dali-csharp-binder/src/fade-transition-wrap.cpp [new file with mode: 0755]
dali-csharp-binder/src/fade-wrap.cpp [deleted file]

index ad6182b..d6f9647 100755 (executable)
@@ -15,7 +15,7 @@ dali_csharp_binder_common_src_files = \
   ${dali_csharp_binder_dir}/src/encoded-image-buffer-wrap.cpp \
   ${dali_csharp_binder_dir}/src/version-check.cpp \
   ${dali_csharp_binder_dir}/src/processor-controller.cpp \
-  ${dali_csharp_binder_dir}/src/fade-wrap.cpp \
+  ${dali_csharp_binder_dir}/src/fade-transition-wrap.cpp \
   ${dali_csharp_binder_dir}/src/flex-layout-wrap.cpp \
   ${dali_csharp_binder_dir}/src/gestures-wrap.cpp \
   ${dali_csharp_binder_dir}/src/view-wrapper-impl-wrap.cpp \
diff --git a/dali-csharp-binder/src/fade-transition-wrap.cpp b/dali-csharp-binder/src/fade-transition-wrap.cpp
new file mode 100755 (executable)
index 0000000..ee48774
--- /dev/null
@@ -0,0 +1,129 @@
+/*
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include <string.h>
+#include "common.h"
+#include <dali-toolkit/public-api/transition/fade-transition.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+  SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_new_FadeTransition()
+  {
+    void *jresult;
+    Dali::Toolkit::FadeTransition *result = 0;
+
+    {
+      try
+      {
+        result = (Dali::Toolkit::FadeTransition *)new Dali::Toolkit::FadeTransition();
+      }
+      CALL_CATCH_EXCEPTION(0);
+    }
+
+    jresult = (void *)result;
+    return jresult;
+  }
+
+  SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_FadeTransition_New(void *nuiControl, float nuiOpaicty, void *nuiTimePeriod)
+  {
+    void *jresult;
+    Dali::Toolkit::Control *control = (Dali::Toolkit::Control *)nuiControl;
+    float opacity = nuiOpaicty;
+    Dali::TimePeriod *timePeriod = (Dali::TimePeriod *)nuiTimePeriod;
+
+    Dali::Toolkit::FadeTransition result;
+
+    {
+      try
+      {
+        result = Dali::Toolkit::FadeTransition::New(*control, opacity, *timePeriod);
+      }
+      CALL_CATCH_EXCEPTION(0);
+    }
+
+    jresult = new Dali::Toolkit::FadeTransition((const Dali::Toolkit::FadeTransition &)result);
+    return jresult;
+  }
+
+  SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_FadeTransition(void *nuiFadeTransition)
+  {
+    Dali::Toolkit::FadeTransition *fade = (Dali::Toolkit::FadeTransition *)0;
+
+    fade = (Dali::Toolkit::FadeTransition *)nuiFadeTransition;
+    {
+      try
+      {
+        delete fade;
+      }
+      CALL_CATCH_EXCEPTION();
+    }
+  }
+
+  SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_new_FadeTransition_Set(void *nuiFadeTransition)
+  {
+    Dali::Toolkit::FadeTransition *newFadeTransition = 0;
+    Dali::Toolkit::FadeTransition *fade = (Dali::Toolkit::FadeTransition *)nuiFadeTransition;
+    if (!fade)
+    {
+      SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::FadeTransition const & type is null", 0);
+      return 0;
+    }
+    {
+      try
+      {
+        newFadeTransition = (Dali::Toolkit::FadeTransition *)new Dali::Toolkit::FadeTransition((Dali::Toolkit::FadeTransition const &)*fade);
+      }
+      CALL_CATCH_EXCEPTION(0);
+    }
+    void *result;
+    result = (void *)newFadeTransition;
+    return result;
+  }
+
+  SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_FadeTransition_Assign(void *nuiDestination, void *nuiSource)
+  {
+    void *jresult;
+    Dali::Toolkit::FadeTransition *destination = (Dali::Toolkit::FadeTransition *)0;
+    Dali::Toolkit::FadeTransition *source = 0;
+    Dali::Toolkit::FadeTransition *result = 0;
+
+    destination = (Dali::Toolkit::FadeTransition *)nuiDestination;
+    source = (Dali::Toolkit::FadeTransition *)nuiSource;
+
+    if (!source)
+    {
+      SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::FadeTransition const & type is null", 0);
+      return 0;
+    }
+    {
+      try
+      {
+        result = (Dali::Toolkit::FadeTransition *)&(destination)->operator=((Dali::Toolkit::FadeTransition const &)*source);
+      }
+      CALL_CATCH_EXCEPTION(0);
+    }
+
+    jresult = (void *)result;
+    return jresult;
+  }
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/dali-csharp-binder/src/fade-wrap.cpp b/dali-csharp-binder/src/fade-wrap.cpp
deleted file mode 100755 (executable)
index 15af66d..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include <string.h>
-#include "common.h"
-#include <dali-toolkit/public-api/transition/fade.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-  SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_new_Fade()
-  {
-    void *jresult;
-    Dali::Toolkit::Fade *result = 0;
-
-    {
-      try
-      {
-        result = (Dali::Toolkit::Fade *)new Dali::Toolkit::Fade();
-      }
-      CALL_CATCH_EXCEPTION(0);
-    }
-
-    jresult = (void *)result;
-    return jresult;
-  }
-
-  SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_Fade_New(void *nuiControl, float nuiOpaicty, void *nuiTimePeriod)
-  {
-    void *jresult;
-    Dali::Toolkit::Control *control = (Dali::Toolkit::Control *)nuiControl;
-    float opacity = nuiOpaicty;
-    Dali::TimePeriod *timePeriod = (Dali::TimePeriod *)nuiTimePeriod;
-
-    Dali::Toolkit::Fade result;
-
-    {
-      try
-      {
-        result = Dali::Toolkit::Fade::New(*control, opacity, *timePeriod);
-      }
-      CALL_CATCH_EXCEPTION(0);
-    }
-
-    jresult = new Dali::Toolkit::Fade((const Dali::Toolkit::Fade &)result);
-    return jresult;
-  }
-
-  SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Fade(void *nuiFade)
-  {
-    Dali::Toolkit::Fade *fade = (Dali::Toolkit::Fade *)0;
-
-    fade = (Dali::Toolkit::Fade *)nuiFade;
-    {
-      try
-      {
-        delete fade;
-      }
-      CALL_CATCH_EXCEPTION();
-    }
-  }
-
-  SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_new_Fade_Set(void *nuiFade)
-  {
-    Dali::Toolkit::Fade *newFade = 0;
-    Dali::Toolkit::Fade *fade = (Dali::Toolkit::Fade *)nuiFade;
-    if (!fade)
-    {
-      SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Fade const & type is null", 0);
-      return 0;
-    }
-    {
-      try
-      {
-        newFade = (Dali::Toolkit::Fade *)new Dali::Toolkit::Fade((Dali::Toolkit::Fade const &)*fade);
-      }
-      CALL_CATCH_EXCEPTION(0);
-    }
-    void *result;
-    result = (void *)newFade;
-    return result;
-  }
-
-  SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_Fade_Assign(void *nuiDestination, void *nuiSource)
-  {
-    void *jresult;
-    Dali::Toolkit::Fade *destination = (Dali::Toolkit::Fade *)0;
-    Dali::Toolkit::Fade *source = 0;
-    Dali::Toolkit::Fade *result = 0;
-
-    destination = (Dali::Toolkit::Fade *)nuiDestination;
-    source = (Dali::Toolkit::Fade *)nuiSource;
-
-    if (!source)
-    {
-      SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Fade const & type is null", 0);
-      return 0;
-    }
-    {
-      try
-      {
-        result = (Dali::Toolkit::Fade *)&(destination)->operator=((Dali::Toolkit::Fade const &)*source);
-      }
-      CALL_CATCH_EXCEPTION(0);
-    }
-
-    jresult = (void *)result;
-    return jresult;
-  }
-
-#ifdef __cplusplus
-}
-#endif