Changed from Adaptor api to Window api about FeedEvents 18/270918/2
authorjoogab.yun <joogab.yun@samsung.com>
Fri, 11 Feb 2022 06:14:17 +0000 (15:14 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Fri, 11 Feb 2022 07:11:44 +0000 (16:11 +0900)
Change-Id: I3915a9b2a08dfc87b2b85e554e0a448dcee20d5e

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

index 79fadec..9e25e8c 100644 (file)
@@ -1477,48 +1477,77 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetTransparency(void * jarg1, uns
   }
 
 }
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_FeedKey_Default_Window(void * event) {
+  Dali::KeyEvent *keyEvent = 0 ;
 
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_FeedKeyEvent(void * jarg1) {
-  Dali::KeyEvent *arg1 = 0 ;
+  keyEvent = (Dali::KeyEvent *)event;
+  if (!keyEvent) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::KeyEvent & type is null", 0);
+    return ;
+  }
+  {
+    try {
+      Dali::Adaptor::Get().FeedKeyEvent(*keyEvent);
+    } CALL_CATCH_EXCEPTION();
+  }
+}
 
-  arg1 = (Dali::KeyEvent *)jarg1;
-  if (!arg1) {
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_FeedKey(void * window, void * event) {
+  Dali::Window* win = (Dali::Window*)window;
+  if (!win) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return ;
+  }
+
+  Dali::KeyEvent *keyEvent = 0 ;
+  keyEvent = (Dali::KeyEvent *)event;
+  if (!keyEvent) {
     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::KeyEvent & type is null", 0);
     return ;
   }
   {
     try {
-      Dali::Adaptor::Get().FeedKeyEvent(*arg1);
+      Dali::DevelWindow::FeedKeyEvent(*win, *keyEvent);
     } CALL_CATCH_EXCEPTION();
   }
 }
 
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_FeedTouchPoint(void * touchPoint, int timeStamp) {
-  Dali::TouchPoint *arg1 = 0 ;
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_FeedTouch(void * window, void * event, int timeStamp) {
+  Dali::Window* win = (Dali::Window*)window;
+  if (!win) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return ;
+  }
 
-  arg1 = (Dali::TouchPoint *)touchPoint;
-  if (!arg1) {
+  Dali::TouchPoint *touchPoint = 0 ;
+  touchPoint = (Dali::TouchPoint *)event;
+  if (!touchPoint) {
     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TouchPoint & type is null", 0);
     return ;
   }
   {
     try {
-      Dali::Adaptor::Get().FeedTouchPoint(*arg1, timeStamp);
+      Dali::DevelWindow::FeedTouchPoint(*win, *touchPoint, timeStamp);
     } CALL_CATCH_EXCEPTION();
   }
 }
 
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_FeedWheelEvent(void * wheelEvent) {
-  Dali::WheelEvent *arg1 = 0 ;
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_FeedWheel(void * window, void * event) {
+  Dali::Window* win = (Dali::Window*)window;
+  if (!win) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return ;
+  }
 
-  arg1 = (Dali::WheelEvent *)wheelEvent;
-  if (!arg1) {
+  Dali::WheelEvent *wheelEvent = 0 ;
+  wheelEvent = (Dali::WheelEvent *)event;
+  if (!wheelEvent) {
     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WheelEvent & type is null", 0);
     return ;
   }
   {
     try {
-      Dali::Adaptor::Get().FeedWheelEvent(*arg1);
+      Dali::DevelWindow::FeedWheelEvent(*win, *wheelEvent);
     } CALL_CATCH_EXCEPTION();
   }
 }