Add CSharp_Dali_GetScreenSize 36/291236/1
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 17 Jan 2023 05:41:41 +0000 (14:41 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 12 Apr 2023 07:59:11 +0000 (16:59 +0900)
To provide the screen size by using GetScreenSize in dali-adaptor,
CSharp_Dali_GetScreenSize is added.

Change-Id: I5de3c73b2c94713a1b1560e0dbd68139fe0bdcef

dali-csharp-binder/src/dali-wrap.cpp

index a11c809..270e868 100644 (file)
@@ -421,6 +421,7 @@ void SWIG_CSharpException(int code, const char *msg) {
 #include <dali-toolkit/devel-api/controls/video-view/video-view-devel.h>
 
 #include <dali/devel-api/adaptor-framework/native-image-source-devel.h>
+#include <dali/devel-api/adaptor-framework/window-system-devel.h>
 
 #include <dali-toolkit/devel-api/text/rendering-backend.h>
 
@@ -60439,6 +60440,18 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_VectorVector2_Size(void * jarg1) {
   return size;
 }
 
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetScreenSize() {
+  void * jresult ;
+  int width, height;
+
+  try {
+    Dali::DevelWindowSystem::GetScreenSize(width, height);
+  } CALL_CATCH_EXCEPTION(0);
+
+  jresult = new Dali::Size(width, height);
+  return jresult;
+}
+
 #ifdef __cplusplus
 }
 #endif