示例#1
0
        public void PanGestureGetPanGestureFromPtr()
        {
            tlog.Debug(tag, $"PanGestureGetPanGestureFromPtr START");
            PanGesture a1 = new PanGesture();
            PanGesture a2 = PanGesture.GetPanGestureFromPtr(PanGesture.getCPtr(a1).Handle);

            a1.Dispose();
            tlog.Debug(tag, $"PanGestureGetPanGestureFromPtr END (OK)");
            Assert.Pass("PanGestureGetPanGestureFromPtr");
        }
示例#2
0
        public void PanGesturePosition()
        {
            tlog.Debug(tag, $"PanGesturePosition START");
            PanGesture a1 = new PanGesture();
            Vector2    v1 = a1.Position;

            a1.Dispose();

            tlog.Debug(tag, $"PanGesturePosition END (OK)");
            Assert.Pass("PanGesturePosition");
        }
示例#3
0
        public void PanGestureDisplacement()
        {
            tlog.Debug(tag, $"PanGestureDisplacement START");
            PanGesture a1 = new PanGesture();
            Vector2    v1 = a1.Displacement;

            a1.Dispose();

            tlog.Debug(tag, $"PanGestureDisplacement END (OK)");
            Assert.Pass("PanGestureDisplacement");
        }
示例#4
0
        public void PanGestureVelocity()
        {
            tlog.Debug(tag, $"PanGestureVelocity START");
            PanGesture a1 = new PanGesture();
            Vector2    v1 = a1.Velocity;

            a1.Dispose();

            tlog.Debug(tag, $"PanGestureVelocity END (OK)");
            Assert.Pass("PanGestureVelocity");
        }
示例#5
0
        public void PanGestureGetSpeed()
        {
            tlog.Debug(tag, $"PanGestureGetSpeed START");
            PanGesture a1 = new PanGesture();
            float      f1 = a1.GetSpeed();

            a1.Dispose();

            tlog.Debug(tag, $"PanGestureGetSpeed END (OK)");
            Assert.Pass("PanGestureGetSpeed");
        }
示例#6
0
        public void PanGestureGetScreenDistance()
        {
            tlog.Debug(tag, $"PanGestureGetScreenDistance START");
            PanGesture a1 = new PanGesture();
            float      f1 = a1.GetScreenDistance();

            a1.Dispose();

            tlog.Debug(tag, $"PanGestureGetScreenDistance END (OK)");
            Assert.Pass("PanGestureGetScreenDistance");
        }
示例#7
0
        public void PanGestureNumberOfTouches()
        {
            tlog.Debug(tag, $"PanGestureNumberOfTouches START");
            PanGesture a1 = new PanGesture();
            uint       b1 = a1.NumberOfTouches;

            a1.Dispose();

            tlog.Debug(tag, $"PanGestureNumberOfTouches END (OK)");
            Assert.Pass("PanGestureNumberOfTouches");
        }
示例#8
0
        public void PanGesturegetCPtr()
        {
            tlog.Debug(tag, $"PanGesturegetCPtr START");
            PanGesture a1 = new PanGesture();

            global::System.Runtime.InteropServices.HandleRef ptr = PanGesture.getCPtr(a1);

            a1.Dispose();

            tlog.Debug(tag, $"PanGesturegetCPtr END (OK)");
            Assert.Pass("PanGestureCPtr");
        }
示例#9
0
        public void PanGestureConstructor()
        {
            tlog.Debug(tag, $"PanGestureConstructor START");
            PanGesture a1 = new PanGesture();

            Gesture.StateType state = Gesture.StateType.Finished;
            PanGesture        a2    = new PanGesture(state);

            a2.Dispose();
            a1.Dispose();
            tlog.Debug(tag, $"PanGestureConstructor END (OK)");
            Assert.Pass("PanGestureConstructor");
        }
示例#10
0
        public void PanGestureConstructorWithState()
        {
            tlog.Debug(tag, $"PanGestureConstructorWithState START");

            var testingTarget = new PanGesture(Gesture.StateType.Finished);

            Assert.IsNotNull(testingTarget, "Can't create success object Hover");
            Assert.IsInstanceOf <PanGesture>(testingTarget, "Should be an instance of PanGesture type.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"PanGestureConstructorWithState END (OK)");
            Assert.Pass("PanGestureConstructor");
        }
示例#11
0
        public void PanGestureGetScreenSpeed()
        {
            tlog.Debug(tag, $"PanGestureGetScreenSpeed START");

            var testingTarget = new PanGesture(Gesture.StateType.Finished);

            Assert.IsNotNull(testingTarget, "Can't create success object Hover");
            Assert.IsInstanceOf <PanGesture>(testingTarget, "Should be an instance of PanGesture type.");

            tlog.Debug(tag, "GetScreenSpeed : " + testingTarget.GetScreenSpeed());

            testingTarget.Dispose();
            tlog.Debug(tag, $"PanGestureGetScreenSpeed END (OK)");
            Assert.Pass("PanGestureGetScreenSpeed");
        }
示例#12
0
        public void PanGestureNumberOfTouches()
        {
            tlog.Debug(tag, $"PanGestureNumberOfTouches START");

            var testingTarget = new PanGesture(Gesture.StateType.Finished);

            Assert.IsNotNull(testingTarget, "Can't create success object Hover");
            Assert.IsInstanceOf <PanGesture>(testingTarget, "Should be an instance of PanGesture type.");

            tlog.Debug(tag, "NumberOfTouches : " + testingTarget.NumberOfTouches);

            testingTarget.Dispose();
            tlog.Debug(tag, $"PanGestureNumberOfTouches END (OK)");
            Assert.Pass("PanGestureNumberOfTouches");
        }
示例#13
0
        void ReleaseDesignerOutlets()
        {
            if (Image != null)
            {
                Image.Dispose();
                Image = null;
            }

            if (LongGesture != null)
            {
                LongGesture.Dispose();
                LongGesture = null;
            }

            if (PanGesture != null)
            {
                PanGesture.Dispose();
                PanGesture = null;
            }

            if (PinchGesture != null)
            {
                PinchGesture.Dispose();
                PinchGesture = null;
            }

            if (RotacionGesture != null)
            {
                RotacionGesture.Dispose();
                RotacionGesture = null;
            }

            if (TapGesture != null)
            {
                TapGesture.Dispose();
                TapGesture = null;
            }
        }