admin
2020-06-10 a610f2ab6e543d2cb78c1ef212ac6a74ddc067d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Copyright © 2019 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
 
using CefSharp.Enums;
 
namespace CefSharp.Structs
{
    /// <summary>
    /// Touch Event
    /// </summary>
    public struct TouchEvent
    {
        /// <summary>
        /// Id of a touch point. Must be unique per touch, can be any number except -1.
        /// Note that a maximum of 16 concurrent touches will be tracked; touches
        /// beyond that will be ignored.
        /// </summary>
        public int Id { get; set; }
 
        /// <summary>
        /// X coordinate relative to the left side of the view.
        /// </summary>
        public float X { get; set; }
 
        /// <summary>
        /// Y coordinate relative to the top side of the view.
        /// </summary>
        public float Y { get; set; }
 
        /// <summary>
        /// X radius in pixels. Set to 0 if not applicable.
        /// </summary>
        public float RadiusX { get; set; }
 
        /// <summary>
        /// Y radius in pixels. Set to 0 if not applicable.
        /// </summary>
        public float RadiusY { get; set; }
 
        /// <summary>
        /// Rotation angle in radians. Set to 0 if not applicable.
        /// </summary>
        public float RotationAngle { get; set; }
 
        /// <summary>
        /// The device type that caused the event.
        /// </summary>
        public PointerType PointerType { get; set; }
 
        /// <summary>
        /// The normalized pressure of the pointer input in the range of [0,1].
        /// Set to 0 if not applicable.
        /// </summary>
        public float Pressure { get; set; }
 
        /// <summary>
        /// The state of the touch point. Touches begin with one <see cref="TouchEventType.Pressed"/> event
        /// followed by zero or more <see cref="TouchEventType.Moved"/> events and finally one
        /// <see cref="TouchEventType.Released"/> or <see cref="TouchEventType.Cancelled"/> event.
        /// Events not respecting this order will be ignored.
        /// </summary>
        public TouchEventType Type { get; set; }
 
        /// <summary>
        ///  Bit flags describing any pressed modifier keys.
        /// </summary>
        public CefEventFlags Modifiers { get; set; }
    }
}