Bind View creator API with custom behavior 64/319564/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 13 Feb 2025 02:39:24 +0000 (11:39 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 13 Feb 2025 02:49:03 +0000 (11:49 +0900)
Change-Id: I7be3999a784770638a033b14f1002f5f42ed506d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-csharp-binder/dali-toolkit/dali-toolkit-wrap.cpp

index a5f818b234feafbc740fc96aac201fc9dcf3ba47..ba91d05a55b4428a730e095598085ce5b095b4e2 100644 (file)
@@ -4365,6 +4365,33 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_NewCustom() {
   return jresult;
 }
 
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_NewWithBehaviour(int csBehaviour) {
+  void * jresult ;
+  Dali::Toolkit::Control result;
+
+  {
+    try {
+      result = Dali::Toolkit::Control::New(static_cast<Dali::Toolkit::Control::ControlBehaviour>(csBehaviour | Dali::Toolkit::Control::ControlBehaviour::DISABLE_STYLE_CHANGE_SIGNALS));
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = new Dali::Toolkit::Control((const Dali::Toolkit::Control &)result);
+  return jresult;
+}
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_NewCustomWithBehaviour(int csBehaviour) {
+  void * jresult;
+  Dali::Toolkit::Control result;
+
+  {
+    try {
+      result = SlimCustomViewImpl::New(static_cast<Dali::Toolkit::Internal::Control::ControlBehaviour>(csBehaviour | Dali::Toolkit::Internal::Control::ControlBehaviour::DISABLE_STYLE_CHANGE_SIGNALS));
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = new Dali::Toolkit::Control((const Dali::Toolkit::Control &)result);
+  return jresult;
+}