public void AccessibilityDoGestureSignalGetSizeOfGestureInfo() { tlog.Debug(tag, $"AccessibilityDoGestureSignalGetSizeOfGestureInfo START"); uint size = AccessibilityDoGestureSignal.GetSizeOfGestureInfo(); tlog.Debug(tag, $"size={size}"); Assert.IsNotNull(size, "should be not null"); tlog.Debug(tag, $"AccessibilityDoGestureSignalGetSizeOfGestureInfo END (OK)"); }
internal AccessibilityDoGestureSignal AccessibilityGestureInfoSignal() { var handle = GetControl(); AccessibilityDoGestureSignal ret = new AccessibilityDoGestureSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityDoGestureSignal(handle), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void AccessibilityDoGestureSignalConstructor() { tlog.Debug(tag, $"AccessibilityDoGestureSignalConstructor START"); var testingTarget = new AccessibilityDoGestureSignal(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <AccessibilityDoGestureSignal>(testingTarget, "should be an instance of testing target class!"); testingTarget.Dispose(); tlog.Debug(tag, $"AccessibilityDoGestureSignalConstructor END (OK)"); }
public void AccessibilityDoGestureSignalSetResult() { tlog.Debug(tag, $"AccessibilityDoGestureSignalSetResult START"); using (View view = new View()) { view.OnWindowSignal(); AccessibilityDoGestureSignal.SetResult(view.SwigCPtr.Handle, true); var result = AccessibilityDoGestureSignal.GetResult(view.SwigCPtr.Handle); tlog.Debug(tag, "Result : " + result); } tlog.Debug(tag, $"AccessibilityDoGestureSignalSetResult END (OK)"); }
public void AccessibilityDoGestureSignalGetConnectionCount() { tlog.Debug(tag, $"AccessibilityDoGestureSignal_GetConnectionCount START"); var handle = new ControlHandle(Interop.View.DownCast(new View().SwigCPtr)); var testingTarget = new AccessibilityDoGestureSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityDoGestureSignal(handle), false); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <AccessibilityDoGestureSignal>(testingTarget, "should be an instance of testing target class!"); var result = testingTarget.GetConnectionCount(); Assert.IsTrue(result == 0, "result should be 0"); testingTarget.Dispose(); tlog.Debug(tag, $"AccessibilityDoGestureSignalGetConnectionCount END (OK)"); }
public void AccessibilityDoGestureSignalDisconnection() { tlog.Debug(tag, $"AccessibilityDoGestureSignalDisconnection START"); var handle = new ControlHandle(Interop.View.DownCast(new View().SwigCPtr)); var testingTarget = new AccessibilityDoGestureSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityDoGestureSignal(handle), false); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <AccessibilityDoGestureSignal>(testingTarget, "should be an instance of testing target class!"); dummyCallback callback = OnDummyCallback; testingTarget.Connect(callback); testingTarget.Disconnect(callback); testingTarget.Dispose(); tlog.Debug(tag, $"AccessibilityDoGestureSignalDisconnection END (OK)"); }
private void OnAccessibilityGestureInfoEvent(IntPtr data) { if (data == IntPtr.Zero) { return; } if (Marshal.SizeOf <GestureInfoType>() != AccessibilityDoGestureSignal.GetSizeOfGestureInfo()) { throw new global::System.ApplicationException("ABI mismatch SizeOf(C# GestureInfo) != SizeOf(c++ GestureInfo)"); } var arg = new GestureInfoEventArgs(); arg.Consumed = AccessibilityDoGestureSignal.GetResult(data); arg.GestureInfo = (GestureInfoType)Marshal.PtrToStructure(data, typeof(GestureInfoType)); gestureInfoHandler?.Invoke(this, arg); AccessibilityDoGestureSignal.SetResult(data, Convert.ToInt32(arg.Consumed)); }