Binding GetNearestFocusableActor api 70/267970/2
authorjoogab.yun <joogab.yun@samsung.com>
Tue, 14 Dec 2021 05:16:22 +0000 (14:16 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Thu, 16 Dec 2021 01:33:50 +0000 (10:33 +0900)
Change-Id: I02664f5660d990d62f06cddecfcf711b4025b6a6

dali-csharp-binder/src/keyboard-focus-manager-wrap.cpp

index 3a26be9..2e688f4 100755 (executable)
@@ -17,6 +17,7 @@
 
 #include "common.h"
 #include <dali-toolkit/dali-toolkit.h>
+#include <dali-toolkit/devel-api/focus-manager/focus-finder.h>
 
 SWIGINTERN bool Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__Empty(Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > const *self){
          return self->Empty();
@@ -509,6 +510,19 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardPreFocusChangeSignal_Emit(void * ja
 }
 
 
+SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardFocusManager_GetNearestFocusableActor(Dali::Actor rootActor, Dali::Actor currentFocusedActor, Dali::Toolkit::Control::KeyboardFocus::Direction direction) {
+  void * jresult;
+  Dali::Actor result;
+  {
+    try {
+      result = Dali::Toolkit::FocusFinder::GetNearestFocusableActor(rootActor, currentFocusedActor, direction);
+    } CALL_CATCH_EXCEPTION(0);
+  }
+  jresult = new Dali::Actor((const Dali::Actor &)result);
+  return jresult;
+}
+
+
 SWIGEXPORT void * SWIGSTDCALL CSharp_new_KeyboardPreFocusChangeSignal() {
   void * jresult ;
   Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *result = 0 ;