public void Emit(ScrollView.SnapEvent arg)
 {
     Interop.ScrollView.ScrollViewSnapStartedSignal_Emit(swigCPtr, ScrollView.SnapEvent.getCPtr(arg));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #2
0
        public void ScrollViewEventSnapEventConstructor()
        {
            tlog.Debug(tag, $"ScrollViewEventSnapEventConstructor START");

            var testingTarget = new ScrollView.SnapEvent();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"ScrollViewEventSnapEventConstructor END (OK)");
        }
Beispiel #3
0
        public void ScrollViewEventSnapEventType()
        {
            tlog.Debug(tag, $"ScrollViewEventSnapEventType START");

            var testingTarget = new ScrollView.SnapEvent();

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

            testingTarget.type = SnapType.Snap;
            Assert.AreEqual(SnapType.Snap, testingTarget.type, "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"ScrollViewEventSnapEventType END (OK)");
        }
Beispiel #4
0
        public void ScrollViewEventSnapEventDuration()
        {
            tlog.Debug(tag, $"ScrollViewEventSnapEventDuration START");

            var testingTarget = new ScrollView.SnapEvent();

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

            testingTarget.duration = 0.5f;
            Assert.AreEqual(0.5f, testingTarget.duration, "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"ScrollViewEventSnapEventDuration END (OK)");
        }
Beispiel #5
0
        public void ScrollViewEventSnapEventPosition()
        {
            tlog.Debug(tag, $"ScrollViewEventSnapEventPosition START");

            var testingTarget = new ScrollView.SnapEvent();

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

            testingTarget.position = new Vector2(20, 30);
            Assert.AreEqual(20, testingTarget.position.X, "Should be equal!");
            Assert.AreEqual(30, testingTarget.position.Y, "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"ScrollViewEventSnapEventPosition END (OK)");
        }
Beispiel #6
0
        public void ScrollViewEventSnapEventGetSnapEventFromPtr()
        {
            tlog.Debug(tag, $"ScrollViewEventSnapEventGetSnapEventFromPtr START");

            var testingTarget = new ScrollView.SnapEvent();

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

            var result = ScrollView.SnapEvent.GetSnapEventFromPtr(testingTarget.SwigCPtr.Handle);

            Assert.IsNotNull(result, "Can't create success object SnapEvent");
            Assert.IsInstanceOf <ScrollView.SnapEvent>(result, "Should be an instance of SnapEvent type.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"ScrollViewEventSnapEventGetSnapEventFromPtr END (OK)");
        }