public void ScrollableSignalEmit() { tlog.Debug(tag, $"ScrollableSignalEmit START"); var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id; var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId; tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}"); using (Vector2 vector = new Vector2(0.3f, 0.5f)) { var testingTarget = new ScrollableSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!"); try { testingTarget.Emit(vector); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"ScrollableSignalEmit END (OK)"); }
public void ScrollableSignalConnect() { tlog.Debug(tag, $"ScrollableSignalConnect START"); var testingTarget = new ScrollableSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!"); try { dummyCallback callback = OnDummyCallback; testingTarget.Connect(callback); testingTarget.Disconnect(callback); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"ScrollableSignalConnect END (OK)"); }
internal ScrollableSignal ScrollCompletedSignal() { ScrollableSignal ret = new ScrollableSignal(NDalicPINVOKE.Scrollable_ScrollCompletedSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal ScrollableSignal ScrollUpdatedSignal() { ScrollableSignal ret = new ScrollableSignal(Interop.Scrollable.ScrollUpdatedSignal(SwigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void ScrollableSignalConstructor() { tlog.Debug(tag, $"ScrollableSignalConstructor START"); using (View view = new View()) { var testingTarget = new ScrollableSignal(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!"); testingTarget.Dispose(); } tlog.Debug(tag, $"ScrollableSignalConstructor END (OK)"); }
public void ScrollableSignalEmpty() { tlog.Debug(tag, $"ScrollableSignalEmpty START"); var testingTarget = new ScrollableSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!"); try { testingTarget.Empty(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"ScrollableSignalEmpty END (OK)"); }
private void DisConnectFromSignals() { if (scrollableCompletedCallbackDelegate != null) { using ScrollableSignal signal = new ScrollableSignal(Interop.Scrollable.ScrollCompletedSignal(GetBaseHandleCPtrHandleRef), false); signal?.Disconnect(scrollableCompletedCallbackDelegate); scrollableCompletedCallbackDelegate = null; } if (scrollableUpdatedCallbackDelegate != null) { using ScrollableSignal signal = new ScrollableSignal(Interop.Scrollable.ScrollUpdatedSignal(GetBaseHandleCPtrHandleRef), false); signal?.Disconnect(scrollableUpdatedCallbackDelegate); scrollableUpdatedCallbackDelegate = null; } if (scrollableStartedCallbackDelegate != null) { using ScrollableSignal signal = new ScrollableSignal(Interop.Scrollable.ScrollStartedSignal(GetBaseHandleCPtrHandleRef), false); signal?.Disconnect(scrollableStartedCallbackDelegate); scrollableStartedCallbackDelegate = null; } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollableSignal obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }