Пример #1
0
        public void VoidSignalEmit()
        {
            tlog.Debug(tag, $"VoidSignalEmit 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 (View view = new View())
            {
                var testingTarget = new VoidSignal();
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <VoidSignal>(testingTarget, "Should be an Instance of VoidSignal!");

                try
                {
                    testingTarget.Emit();
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception: Failed!");
                }

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"VoidSignalEmit END (OK)");
        }
Пример #2
0
        protected override void Dispose(DisposeTypes type)
        {
            if (disposed)
            {
                return;
            }

            //Release your own unmanaged resources here.
            //You should not access any managed member here except static instance.
            //because the execution order of Finalizes is non-deterministic.
            if (this != null)
            {
                if (_scrollBarScrollPositionIntervalReachedEventCallbackDelegate != null)
                {
                    FloatSignal scrollPositionIntervalReached = ScrollPositionIntervalReachedSignal();
                    scrollPositionIntervalReached?.Disconnect(_scrollBarScrollPositionIntervalReachedEventCallbackDelegate);
                    scrollPositionIntervalReached?.Dispose();
                }

                if (_scrollBarPanFinishedEventCallbackDelegate != null)
                {
                    VoidSignal panFinished = PanFinishedSignal();
                    panFinished?.Disconnect(_scrollBarPanFinishedEventCallbackDelegate);
                    panFinished?.Dispose();
                }
            }

            base.Dispose(type);
        }
Пример #3
0
        public void VoidSignalConnect()
        {
            tlog.Debug(tag, $"VoidSignalConnect START");

            var testingTarget = new VoidSignal();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <VoidSignal>(testingTarget, "Should be an Instance of VoidSignal!");

            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, $"VoidSignalConnect END (OK)");
        }
Пример #4
0
        internal VoidSignal HiddenSignal()
        {
            VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #5
0
        internal VoidSignal PanFinishedSignal()
        {
            VoidSignal ret = new VoidSignal(NDalicPINVOKE.ScrollBar_PanFinishedSignal(swigCPtr), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #6
0
        internal VoidSignal ShowingSignal()
        {
            VoidSignal ret = new VoidSignal(Interop.Popup.ShowingSignal(swigCPtr), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #7
0
        internal VoidSignal OutsideTouchedSignal()
        {
            VoidSignal ret = new VoidSignal(Interop.Popup.OutsideTouchedSignal(SwigCPtr), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        internal VoidSignal AccessibilityReadingStoppedSignal()
        {
            var        handle = GetControl();
            VoidSignal ret    = new VoidSignal(Interop.ControlDevel.DaliToolkitDevelControlAccessibilityReadingStoppedSignal(handle), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #9
0
        protected override void Dispose(DisposeTypes type)
        {
            if (disposed)
            {
                return;
            }

            //Release your own unmanaged resources here.
            //You should not access any managed member here except static instance.
            //because the execution order of Finalizes is non-deterministic.
            if (this != null)
            {
                if (_popUpHiddenEventCallbackDelegate != null)
                {
                    VoidSignal hiddenSignal = HiddenSignal();
                    hiddenSignal?.Disconnect(_popUpHiddenEventCallbackDelegate);
                    hiddenSignal?.Dispose();
                }

                if (_popUpHidingEventCallbackDelegate != null)
                {
                    VoidSignal hidingSignal = HidingSignal();
                    hidingSignal?.Disconnect(_popUpHidingEventCallbackDelegate);
                    hidingSignal?.Dispose();
                }
            }

            if (_popUpShownEventCallbackDelegate != null)
            {
                VoidSignal shownSignal = ShownSignal();
                shownSignal?.Disconnect(_popUpShownEventCallbackDelegate);
                shownSignal?.Dispose();
            }

            if (_popUpShowingEventCallbackDelegate != null)
            {
                VoidSignal showingSignal = ShowingSignal();
                showingSignal?.Disconnect(_popUpShowingEventCallbackDelegate);
                showingSignal?.Dispose();
            }

            if (_popUpOutsideTouchedEventCallbackDelegate != null)
            {
                VoidSignal outsideTouchedSingal = this.OutsideTouchedSignal();
                outsideTouchedSingal?.Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
                outsideTouchedSingal?.Dispose();
            }

            base.Dispose(type);
        }
Пример #10
0
        public void VoidSignalConstructor()
        {
            tlog.Debug(tag, $"VoidSignalConstructor START");

            using (View view = new View())
            {
                var testingTarget = new VoidSignal(view.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <VoidSignal>(testingTarget, "Should be an Instance of VoidSignal!");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"VoidSignalConstructor END (OK)");
        }
Пример #11
0
        public void VoidSignalGetConnectionCount()
        {
            tlog.Debug(tag, $"VoidSignalGetConnectionCount START");

            var testingTarget = new VoidSignal();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <VoidSignal>(testingTarget, "Should be an Instance of VoidSignal!");

            try
            {
                testingTarget.GetConnectionCount();
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            testingTarget.Dispose();

            tlog.Debug(tag, $"VoidSignalGetConnectionCount END (OK)");
        }
Пример #12
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VoidSignal obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }