From: Youngsun Suh Date: Wed, 11 Sep 2024 07:23:38 +0000 (+0900) Subject: Add binding for AccessibilityActionSignal X-Git-Tag: dali_2.3.42~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a6f65f954bae1c1041d36a2fe22d2935d2ede39;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Add binding for AccessibilityActionSignal Change-Id: I62578e1b2cebae6bfe465128dcbf7531a92c87aa --- diff --git a/dali-csharp-binder/common/signal-wrap.cpp b/dali-csharp-binder/common/signal-wrap.cpp index dde34e1c..b179893a 100644 --- a/dali-csharp-binder/common/signal-wrap.cpp +++ b/dali-csharp-binder/common/signal-wrap.cpp @@ -198,6 +198,55 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Signal_GesturePairToVoid_SetResult(void })); } +/* + * AccessibilityActionSignalType + */ +using ActionInfoFunc = bool (*)(const Dali::Accessibility::ActionInfo &); + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Signal_AccessibilityActionSignal_Empty(void *arg1) { + bool result = false; + GUARD_ON_NULL_RET0(arg1); + try_catch(([&]() { + auto object = (Dali::Toolkit::DevelControl::AccessibilityActionSignalType*)arg1; + result = object->Empty(); + })); + return result; +} + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_Signal_AccessibilityActionSignal_GetConnectionCount(void *arg1) { + std::size_t result = 0; + GUARD_ON_NULL_RET0(arg1); + try_catch(([&]() { + auto object = (Dali::Toolkit::DevelControl::AccessibilityActionSignalType*)arg1; + result = object->GetConnectionCount(); + })); + return result; +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Signal_AccessibilityActionSignal_Connect(void *arg1, void *arg2) { + GUARD_ON_NULL_RET(arg1); + GUARD_ON_NULL_RET(arg2); + try_catch(([&]() { + auto object = (Dali::Toolkit::DevelControl::AccessibilityActionSignalType*)arg1; + auto func = (ActionInfoFunc)arg2; + object->Connect(func); + })); +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Signal_AccessibilityActionSignal_Disconnect(void *arg1, void *arg2) { + GUARD_ON_NULL_RET(arg1); + GUARD_ON_NULL_RET(arg2); + try_catch(([&]() { + auto object = (Dali::Toolkit::DevelControl::AccessibilityActionSignalType*)arg1; + auto func = (ActionInfoFunc)arg2; + object->Disconnect(func); + })); +} + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Signal_AccessibilityActionSignal_GetSizeOfActionInfo(void) { + return sizeof(Dali::Accessibility::ActionInfo); +} + #ifdef __cplusplus } #endif