Binding RenderEffect(BackgroundBlurEFfect) 72/313372/4
authorjmm <j0064423.lee@samsung.com>
Tue, 25 Jun 2024 03:53:26 +0000 (12:53 +0900)
committerjmm <j0064423.lee@samsung.com>
Mon, 8 Jul 2024 04:49:17 +0000 (13:49 +0900)
Change-Id: I06772ab5011a0056785757c8fa495612a7d14722

dali-csharp-binder/dali-toolkit/dali-toolkit-wrap.cpp
dali-csharp-binder/dali-toolkit/render-effects-wrap.cpp [new file with mode: 0644]
dali-csharp-binder/file.list

index 6c34eb2b86f1f93076b16abecfccced40f25beef..f4dae08af3083607c2af3a653a2e59b8c343121a 100644 (file)
@@ -3612,7 +3612,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_ClearBackground(void * jarg1) {
 
 }
 
-
 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_EnableGestureDetection(void * jarg1, int jarg2) {
   Dali::Toolkit::Internal::Control *arg1 = (Dali::Toolkit::Internal::Control *) 0 ;
   Dali::GestureType::Value arg2 ;
@@ -4716,6 +4715,30 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_ClearBackground(void * jarg1) {
 
 }
 
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_SetRenderEffect(void * handle, void * effectHandle) {
+  Dali::Toolkit::Control *control = (Dali::Toolkit::Control *)handle  ;
+
+  if (!effectHandle) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null render effect", 0);
+    return;
+  }
+
+  Dali::Toolkit::RenderEffect *effect = (Dali::Toolkit::RenderEffect *) effectHandle;
+  {
+    try {
+      (control)->SetRenderEffect(*effect);
+    } CALL_CATCH_EXCEPTION();
+  }
+}
+
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_ClearRenderEffect(void * handle) {
+  Dali::Toolkit::Control *control = (Dali::Toolkit::Control *) handle ;
+  {
+    try {
+      (control)->ClearRenderEffect();
+    } CALL_CATCH_EXCEPTION();
+  }
+}
 
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_View__SWIG_2(void * jarg1) {
   void * jresult ;
diff --git a/dali-csharp-binder/dali-toolkit/render-effects-wrap.cpp b/dali-csharp-binder/dali-toolkit/render-effects-wrap.cpp
new file mode 100644 (file)
index 0000000..22a200f
--- /dev/null
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2024 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.
+ *
+ */
+
+// EXTERNAL INCLUDES
+#include <dali-toolkit/dali-toolkit.h>
+
+// INTERNAL INCLUDES
+#include <dali-csharp-binder/common/common.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_BackgroundBlurEffect_New__SWIG_0() {
+  Dali::Toolkit::BackgroundBlurEffect blurEffect;
+  {
+    try {
+      blurEffect = Dali::Toolkit::BackgroundBlurEffect::New();
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  return new Dali::Toolkit::BackgroundBlurEffect((const Dali::Toolkit::BackgroundBlurEffect &)blurEffect);
+}
+
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_BackgroundBlurEffect_New__SWIG_1(unsigned int pixelRadius) {
+
+  Dali::Toolkit::BackgroundBlurEffect blurEffect;
+  {
+    try {
+      blurEffect = Dali::Toolkit::BackgroundBlurEffect::New(0.4f, pixelRadius);
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  return new Dali::Toolkit::BackgroundBlurEffect((const Dali::Toolkit::BackgroundBlurEffect &)blurEffect);
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_BackgroundBlurEffect(void * handle) {
+  Dali::Toolkit::BackgroundBlurEffect *blurEffect = (Dali::Toolkit::BackgroundBlurEffect *)handle;
+  {
+    try {
+      delete blurEffect;
+    } CALL_CATCH_EXCEPTION();
+  }
+}
+
+
+#ifdef __cplusplus
+}
+#endif
index 6fbca92904468d7e6d0462c2e15b1e9a067c6cf8..489791e73437b82276eb9458825b9f755ebc27cc 100755 (executable)
@@ -64,6 +64,7 @@ SET( dali_csharp_binder_common_src_files
   ${dali_csharp_binder_dir}/dali-toolkit/internal-visual-property-get-set-wrap.cpp
   ${dali_csharp_binder_dir}/dali-toolkit/keyboard-focus-manager-wrap.cpp
   ${dali_csharp_binder_dir}/dali-toolkit/particle-system-wrap.cpp
+  ${dali_csharp_binder_dir}/dali-toolkit/render-effects-wrap.cpp
   ${dali_csharp_binder_dir}/dali-toolkit/scale-transition-wrap.cpp
   ${dali_csharp_binder_dir}/dali-toolkit/slide-transition-wrap.cpp
   ${dali_csharp_binder_dir}/dali-toolkit/style-manager-wrap.cpp