Add binding function: DevelControl::GetVisualProperty 11/250611/2
authorJiyun Yang <ji.yang@samsung.com>
Wed, 30 Dec 2020 07:30:51 +0000 (16:30 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Wed, 30 Dec 2020 07:36:30 +0000 (16:36 +0900)
Change-Id: I6094a67cedb0cc3faaccf12535346687905f834a
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
dali-csharp-binder/src/dali_wrap.cpp

index 0498357..4396742 100755 (executable)
@@ -38251,6 +38251,25 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_DoAction(void * jarg1, int jarg2, i
   }
 }
 
+SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_View_GetVisualProperty(void* control, int propertyIndex, int visualPropertyIndex)
+{
+  if (!control)
+  {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Given control is null", 0);
+    return 0;
+  }
+
+  void* result = 0;
+  try
+  {
+    Dali::Property property = DevelControl::GetVisualProperty(*((Dali::Toolkit::Control*)control), (Dali::Property::Index)propertyIndex, (Dali::Property::Index)visualPropertyIndex);
+    result = new Dali::Property(property.object, property.propertyIndex, property.componentIndex);
+  }
+  CALL_CATCH_EXCEPTION(0);
+
+  return result;
+}
+
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ResourceReadySignal(void * jarg1) {
   void * jresult ;
   Dali::Toolkit::Control *arg1 = 0 ;