From 8d91caf825b08120dfb9348b32eaec35ca47448e Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Thu, 10 Nov 2022 14:50:04 +0900 Subject: [PATCH] [ATSPI] Add C# binding of EmitScrollStartedEvent/EmitScrollFinishedEvent - Added `EmitScrollStartedEvent` to notify scroll is started. - Added `EmitScrollFinishedEvent` to notify scroll is finished. This patch is using below interface. https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/284124/ Change-Id: I43a4e6b898c208030033817e15407eae1cd3c4e4 --- dali-csharp-binder/src/control-devel-wrap.cpp | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/dali-csharp-binder/src/control-devel-wrap.cpp b/dali-csharp-binder/src/control-devel-wrap.cpp index d43c5f68..53fcab31 100644 --- a/dali-csharp-binder/src/control-devel-wrap.cpp +++ b/dali-csharp-binder/src/control-devel-wrap.cpp @@ -420,6 +420,40 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Accessibility_EmitTextCursorMovedEvent( })); } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Accessibility_EmitScrollStartedEvent(void* arg1_actor) +{ + GUARD_ON_NULL_RET(arg1_actor); + try_catch(([&]() { + Dali::Actor* control = (Dali::Actor*)arg1_actor; + auto accessible = Dali::Accessibility::Accessible::Get(*control); + if(accessible) + { + accessible->EmitScrollStarted(); + } + else + { + SWIG_CSharpException(SWIG_RuntimeError, "Actor does not have accessible object."); + } + })); +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Accessibility_EmitScrollFinishedEvent(void* arg1_actor) +{ + GUARD_ON_NULL_RET(arg1_actor); + try_catch(([&]() { + Dali::Actor* control = (Dali::Actor*)arg1_actor; + auto accessible = Dali::Accessibility::Accessible::Get(*control); + if(accessible) + { + accessible->EmitScrollFinished(); + } + else + { + SWIG_CSharpException(SWIG_RuntimeError, "Actor does not have accessible object."); + } + })); +} + SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_Accessibility_IsSuppressedEvent(void* arg1, int32_t atspiEvent) { bool result = false; -- 2.34.1