2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
23 /// Event arguments for gesture type map events
25 /// <since_tizen>3</since_tizen>
26 public class MapGestureEventArgs : EventArgs
28 internal MapGestureEventArgs(IntPtr nativeHandle)
30 using (var handle = new Interop.GestureEventDataHandle(nativeHandle))
32 GestureType = (GestureType)handle.GestureType;
33 Position = handle.Position;
34 TouchCount = handle.FingerCount;
35 ZoomFactor = handle.ZoomFactor;
36 RotationAngle = handle.RotationAngle;
37 Geocoordinates = new Geocoordinates(handle.Coordinates);
42 /// Gets type of gesture event.
44 /// <since_tizen>3</since_tizen>
45 public GestureType GestureType { get; }
48 /// Gets screen coordinates in the event.
50 /// <since_tizen>3</since_tizen>
51 public Point Position { get; }
54 /// Gets the number of fingers detected in the event.
56 /// <since_tizen>3</since_tizen>
57 public int TouchCount { get; }
60 /// Gets zoom factor for zoom gesture event.
62 /// <since_tizen>3</since_tizen>
63 public double ZoomFactor { get; }
66 /// Gets angle of rotation for rotate gesture event.
68 /// <since_tizen>3</since_tizen>
69 public double RotationAngle { get; }
72 /// Gets geographical coordinates for the event.
74 /// <since_tizen>3</since_tizen>
75 public Geocoordinates Geocoordinates { get; }