Example #1
0
 /// <summary>
 /// The constructor.
 /// </summary>
 /// <param name="type">The type of the wheel event.</param>
 /// <param name="direction">The direction of wheel rolling (0 = default vertical wheel, 1 = horizontal wheel).</param>
 /// <param name="modifiers">Modifier keys pressed during the event (such as Shift, Alt, and Ctrl).</param>
 /// <param name="point">The coordinates of the cursor relative to the top-left of the screen.</param>
 /// <param name="z">The offset of rolling (positive value means roll down or clockwise, and negative value means roll up or counter-clockwise).</param>
 /// <param name="timeStamp">The time the wheel is being rolled.</param>
 /// <since_tizen> 3 </since_tizen>
 public Wheel(Wheel.WheelType type, int direction, uint modifiers, Vector2 point, int z, uint timeStamp) : this(Interop.Wheel.Wheel_New((int)type, direction, modifiers, Vector2.getCPtr(point), z, timeStamp), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
        public void WheelType()
        {
            tlog.Debug(tag, $"WheelType START");
            Wheel a1 = new Wheel();

            Wheel.WheelType b1 = a1.Type;

            tlog.Debug(tag, $"WheelType END (OK)");
            Assert.Pass("WheelType");
        }
Example #3
0
        public void WheelConstructor()
        {
            tlog.Debug(tag, $"WheelConstructor START");

            Wheel a1 = new Wheel();

            Wheel.WheelType type = Wheel.WheelType.MouseWheel;
            Vector2         v    = new Vector2(0.0f, 0.0f);
            Wheel           a2   = new Wheel(type, 0, 0, v, 0, 123);

            a2.Dispose();
            a1.Dispose();

            tlog.Debug(tag, $"WheelConstructor END (OK)");
            Assert.Pass("WheelConstructor");
        }