[AT-SPI] Bindings for AccessibleImpl::ScrollToChild() 99/255699/8
authorArtur Świgoń <a.swigon@samsung.com>
Mon, 22 Mar 2021 16:10:57 +0000 (17:10 +0100)
committerArtur Świgoń <a.swigon@samsung.com>
Tue, 8 Jun 2021 07:36:45 +0000 (09:36 +0200)
Change-Id: If67e17c160e21022c1d95561c17c5c6f28e4012b

dali-csharp-binder/src/accessible-impl-nui.cpp

index ec03071..52591b2 100644 (file)
@@ -53,6 +53,7 @@ struct AccessibilityDelegate
     bool (*insertText)(int, const char *); // 24
     bool (*setTextContents)(const char *); // 25
     bool (*deleteText)(int, int); // 26
+    bool (*scrollToChild)(Dali::Actor *); // 27
 };
 
 inline std::string stealString(char *str)
@@ -271,10 +272,17 @@ struct AccessibleImpl_NUI : public AccessibleImpl
         return ret;
     }
 
-#if 0
-    void EnsureChildVisible(Dali::Actor child) override;
-    void EnsureSelfVisible() override;
-#endif
+    bool ScrollToChild(Dali::Actor child) override
+    {
+        bool ret{false};
+
+        if (v->scrollToChild)
+        {
+            ret = v->scrollToChild(new Dali::Actor(child));
+        }
+
+        return ret;
+    }
 };
 
 struct AccessibleImpl_NUI_Value : public AccessibleImpl_NUI,