To provide the screen size by using GetScreenSize in dali-adaptor,
CSharp_Dali_GetScreenSize is added.
Change-Id: I5de3c73b2c94713a1b1560e0dbd68139fe0bdcef
#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>
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