2 * Copyright(c) 2018 Samsung Electronics Co., Ltd.
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.
18 using System.Runtime.InteropServices;
19 using Tizen.NUI.BaseComponents;
20 using System.ComponentModel;
26 /// This class emits a signals when a pan gesture occurs.<br />
28 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
29 [EditorBrowsable(EditorBrowsableState.Never)]
30 public class PanGestureDetector : GestureDetector
32 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
34 internal PanGestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PanGestureDetector_SWIGUpcast(cPtr), cMemoryOwn)
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
39 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PanGestureDetector obj)
41 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
47 /// <param name="type">The dispose type</param>
48 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
49 [EditorBrowsable(EditorBrowsableState.Never)]
50 protected override void Dispose(DisposeTypes type)
57 if (type == DisposeTypes.Explicit)
60 //Release your own managed resources here.
61 //You should release all of your own disposable objects here.
65 //Release your own unmanaged resources here.
66 //You should not access any managed member here except static instance.
67 //because the execution order of Finalizes is non-deterministic.
69 if (swigCPtr.Handle != global::System.IntPtr.Zero)
74 NDalicPINVOKE.delete_PanGestureDetector(swigCPtr);
76 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
84 /// Event arguments that are passed via the PanGestureEvent signal.
86 /// <since_tizen> 5 </since_tizen>
87 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
88 [EditorBrowsable(EditorBrowsableState.Never)]
89 public class DetectedEventArgs : EventArgs
92 private PanGesture _panGesture;
95 /// The attached view.
97 /// <since_tizen> 5 </since_tizen>
98 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
99 [EditorBrowsable(EditorBrowsableState.Never)]
115 /// <since_tizen> 5 </since_tizen>
116 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
117 [EditorBrowsable(EditorBrowsableState.Never)]
118 public PanGesture PanGesture
131 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
132 private delegate void DetectedCallbackDelegate(IntPtr actor, IntPtr panGesture);
133 private DaliEventHandler<object, DetectedEventArgs> _panGestureEventHandler;
134 private DetectedCallbackDelegate _panGestureCallbackDelegate;
137 /// This signal is emitted when the specified pan is detected on the attached view.
139 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
140 [EditorBrowsable(EditorBrowsableState.Never)]
141 public event DaliEventHandler<object, DetectedEventArgs> Detected
147 // Restricted to only one listener
148 if (_panGestureEventHandler == null)
150 _panGestureEventHandler += value;
152 _panGestureCallbackDelegate = new DetectedCallbackDelegate(OnPanGestureDetected);
153 this.DetectedSignal().Connect(_panGestureCallbackDelegate);
162 if (_panGestureEventHandler != null)
164 this.DetectedSignal().Disconnect(_panGestureCallbackDelegate);
167 _panGestureEventHandler -= value;
172 private void OnPanGestureDetected(IntPtr actor, IntPtr panGesture)
174 DetectedEventArgs e = new DetectedEventArgs();
176 // Populate all members of "e" (PanGestureEventArgs) with real data
177 e.View = Registry.GetManagedBaseHandleFromNativePtr(actor) as View;
178 e.PanGesture = Tizen.NUI.PanGesture.GetPanGestureFromPtr(panGesture);
180 if (_panGestureEventHandler != null)
182 //here we send all data to user event handlers
183 _panGestureEventHandler(this, e);
188 internal static PanGestureDetector GetPanGestureDetectorFromPtr(global::System.IntPtr cPtr)
190 PanGestureDetector ret = new PanGestureDetector(cPtr, false);
191 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
195 internal class Property : global::System.IDisposable
197 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
199 protected bool swigCMemOwn;
201 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
203 swigCMemOwn = cMemoryOwn;
204 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
207 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
209 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
212 //A Flag to check who called Dispose(). (By User or DisposeQueue)
213 private bool isDisposeQueued = false;
214 //A Flat to check if it is already disposed.
216 protected bool disposed = false;
221 if (!isDisposeQueued)
223 isDisposeQueued = true;
224 DisposeQueue.Instance.Add(this);
229 public void Dispose()
231 //Throw excpetion if Dispose() is called in separate thread.
232 if (!Window.IsInstalled())
234 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
239 Dispose(DisposeTypes.Implicit);
243 Dispose(DisposeTypes.Explicit);
244 System.GC.SuppressFinalize(this);
249 protected virtual void Dispose(DisposeTypes type)
256 if (type == DisposeTypes.Explicit)
259 //Release your own managed resources here.
260 //You should release all of your own disposable objects here.
264 //Release your own unmanaged resources here.
265 //You should not access any managed member here except static instance.
266 //because the execution order of Finalizes is non-deterministic.
268 if (swigCPtr.Handle != global::System.IntPtr.Zero)
273 NDalicPINVOKE.delete_PanGestureDetector_Property(swigCPtr);
275 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
282 public Property() : this(NDalicPINVOKE.new_PanGestureDetector_Property(), true)
284 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
288 public static readonly int SCREEN_POSITION = NDalicPINVOKE.PanGestureDetector_Property_SCREEN_POSITION_get();
290 public static readonly int SCREEN_DISPLACEMENT = NDalicPINVOKE.PanGestureDetector_Property_SCREEN_DISPLACEMENT_get();
292 public static readonly int SCREEN_VELOCITY = NDalicPINVOKE.PanGestureDetector_Property_SCREEN_VELOCITY_get();
294 public static readonly int LOCAL_POSITION = NDalicPINVOKE.PanGestureDetector_Property_LOCAL_POSITION_get();
296 public static readonly int LOCAL_DISPLACEMENT = NDalicPINVOKE.PanGestureDetector_Property_LOCAL_DISPLACEMENT_get();
298 public static readonly int LOCAL_VELOCITY = NDalicPINVOKE.PanGestureDetector_Property_LOCAL_VELOCITY_get();
300 public static readonly int PANNING = NDalicPINVOKE.PanGestureDetector_Property_PANNING_get();
305 /// For a left pan (-PI Radians).
307 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
308 [EditorBrowsable(EditorBrowsableState.Never)]
309 public static Radian DirectionLeft
313 global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_LEFT_get();
314 Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false);
315 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
321 /// For a right pan (0 Radians).
323 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
324 [EditorBrowsable(EditorBrowsableState.Never)]
325 public static Radian DirectionRight
329 global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_RIGHT_get();
330 Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false);
331 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
337 /// For an up pan (-0.5 * PI Radians).
339 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
340 [EditorBrowsable(EditorBrowsableState.Never)]
341 public static Radian DirectionUp
345 global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_UP_get();
346 Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false);
347 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353 /// For a down pan (0.5 * PI Radians).
355 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
356 [EditorBrowsable(EditorBrowsableState.Never)]
357 public static Radian DirectionDown
361 global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_DOWN_get();
362 Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false);
363 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369 /// For a left and right pan (PI Radians). Useful for AddDirection().
371 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
372 [EditorBrowsable(EditorBrowsableState.Never)]
373 public static Radian DirectionHorizontal
377 global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_HORIZONTAL_get();
378 Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false);
379 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
385 /// For an up and down pan (-0.5 * PI Radians). Useful for AddDirection().
387 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
388 [EditorBrowsable(EditorBrowsableState.Never)]
389 public static Radian DirectionVertical
393 global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_VERTICAL_get();
394 Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false);
395 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
401 /// The default threshold is PI * 0.25 radians (or 45 degrees).
403 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
404 [EditorBrowsable(EditorBrowsableState.Never)]
405 public static Radian DefaultThreshold
409 global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DEFAULT_THRESHOLD_get();
410 Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false);
411 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
417 /// Creates an initialized PanGestureDetector.
419 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
420 [EditorBrowsable(EditorBrowsableState.Never)]
421 public PanGestureDetector() : this(NDalicPINVOKE.PanGestureDetector_New(), true)
423 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
427 internal new static PanGestureDetector DownCast(BaseHandle handle)
429 PanGestureDetector ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as PanGestureDetector;
430 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435 /// The copy constructor.
437 /// <param name="handle">A reference to the copied handle</param>
438 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
439 [EditorBrowsable(EditorBrowsableState.Never)]
440 public PanGestureDetector(PanGestureDetector handle) : this(NDalicPINVOKE.new_PanGestureDetector__SWIG_1(PanGestureDetector.getCPtr(handle)), true)
442 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
445 internal PanGestureDetector Assign(PanGestureDetector rhs)
447 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.PanGestureDetector_Assign(swigCPtr, PanGestureDetector.getCPtr(rhs)), false);
448 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
453 /// This is the minimum number of touches required for the pan gesture to be detected.
455 /// <param name="minimum">Minimum touches required</param>
456 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
457 [EditorBrowsable(EditorBrowsableState.Never)]
458 public void SetMinimumTouchesRequired(uint minimum)
460 NDalicPINVOKE.PanGestureDetector_SetMinimumTouchesRequired(swigCPtr, minimum);
461 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
465 /// This is the maximum number of touches required for the pan gesture to be detected.
467 /// <param name="maximum">Maximum touches required</param>
468 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
469 [EditorBrowsable(EditorBrowsableState.Never)]
470 public void SetMaximumTouchesRequired(uint maximum)
472 NDalicPINVOKE.PanGestureDetector_SetMaximumTouchesRequired(swigCPtr, maximum);
473 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477 /// Retrieves the minimum number of touches required for the pan gesture to be detected.
479 /// <returns>The minimum touches required</returns>
480 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
481 [EditorBrowsable(EditorBrowsableState.Never)]
482 public uint GetMinimumTouchesRequired()
484 uint ret = NDalicPINVOKE.PanGestureDetector_GetMinimumTouchesRequired(swigCPtr);
485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
490 /// Retrieves the maximum number of touches required for the pan gesture to be detected.
492 /// <returns>The maximum touches required</returns>
493 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
494 [EditorBrowsable(EditorBrowsableState.Never)]
495 public uint GetMaximumTouchesRequired()
497 uint ret = NDalicPINVOKE.PanGestureDetector_GetMaximumTouchesRequired(swigCPtr);
498 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
503 /// The pan gesture is only emitted if the pan occurs in the direction specified by this method with a +/- threshold allowance.<br />
504 /// If an angle of 0.0 degrees is specified and the threshold is 45 degrees then the acceptable direction range is from -45 to 45 degrees.<br />
505 /// The angle added using this API is only checked when the gesture first starts, after that, this detector will emit the gesture regardless of what angle the pan is moving.
506 /// The user can add as many angles as they require.
508 /// <param name="angle">The angle that pan should be allowed</param>
509 /// <param name="threshold">The threshold around that angle</param>
510 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
511 [EditorBrowsable(EditorBrowsableState.Never)]
512 public void AddAngle(Radian angle, Radian threshold)
514 NDalicPINVOKE.PanGestureDetector_AddAngle__SWIG_0(swigCPtr, Radian.getCPtr(angle), Radian.getCPtr(threshold));
515 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519 /// The pan gesture is only emitted if the pan occurs in the direction specified by this method with a +/- threshold allowance. The default threshold (PI * 0.25) is used.<br />
520 /// The angle added using this API is only checked when the gesture first starts, after that, this detector will emit the gesture regardless of what angle the pan is moving.<br />
521 /// The user can add as many angles as they require.<br />
523 /// <param name="angle">The angle that pan should be allowed</param>
524 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
525 [EditorBrowsable(EditorBrowsableState.Never)]
526 public void AddAngle(Radian angle)
528 NDalicPINVOKE.PanGestureDetector_AddAngle__SWIG_1(swigCPtr, Radian.getCPtr(angle));
529 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
533 /// A helper method for adding bi-directional angles where the pan should take place.<br />
534 /// In other words, if 0 is requested, then PI will also be added so that we have both left and right scrolling.<br />
536 /// <param name="direction">The direction of panning required</param>
537 /// <param name="threshold">The threshold</param>
538 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
539 [EditorBrowsable(EditorBrowsableState.Never)]
540 public void AddDirection(Radian direction, Radian threshold)
542 NDalicPINVOKE.PanGestureDetector_AddDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
543 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
547 /// A helper method for adding bi-directional angles where the pan should take place.
548 /// In other words, if 0 is requested, then PI will also be added so that we have both left and right scrolling.<br />
549 /// The default threshold (PI * 0.25) is used.
551 /// <param name="direction">The direction of panning required</param>
552 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
553 [EditorBrowsable(EditorBrowsableState.Never)]
554 public void AddDirection(Radian direction)
556 NDalicPINVOKE.PanGestureDetector_AddDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
557 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
561 /// Returns the count of angles that this pan gesture detector emits a signal.
563 /// <returns>The gesture detector has been initialized.</returns>
564 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
565 [EditorBrowsable(EditorBrowsableState.Never)]
566 public uint GetAngleCount()
568 uint ret = NDalicPINVOKE.PanGestureDetector_GetAngleCount(swigCPtr);
569 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573 internal AngleThresholdPair GetAngle(uint index)
575 AngleThresholdPair ret = new AngleThresholdPair(NDalicPINVOKE.PanGestureDetector_GetAngle(swigCPtr, index), true);
576 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
581 /// Clears any directional angles that are used by the gesture detector.
583 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
584 [EditorBrowsable(EditorBrowsableState.Never)]
585 public void ClearAngles()
587 NDalicPINVOKE.PanGestureDetector_ClearAngles(swigCPtr);
588 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
592 /// Removes the angle specified from the container. This will only remove the first instance of the angle found from the container.
594 /// <param name="angle">The angle to remove</param>
595 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
596 [EditorBrowsable(EditorBrowsableState.Never)]
597 public void RemoveAngle(Radian angle)
599 NDalicPINVOKE.PanGestureDetector_RemoveAngle(swigCPtr, Radian.getCPtr(angle));
600 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
604 /// Removes the two angles that make up the direction from the container.
606 /// <param name="direction">The direction to remove</param>
607 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
608 [EditorBrowsable(EditorBrowsableState.Never)]
609 public void RemoveDirection(Radian direction)
611 NDalicPINVOKE.PanGestureDetector_RemoveDirection(swigCPtr, Radian.getCPtr(direction));
612 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
615 internal PanGestureDetectedSignal DetectedSignal()
617 PanGestureDetectedSignal ret = new PanGestureDetectedSignal(NDalicPINVOKE.PanGestureDetector_DetectedSignal(swigCPtr), false);
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
623 /// Allows setting of the pan properties that are returned in constraints.
625 /// <param name="pan">The pan gesture to set</param>
626 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
627 [EditorBrowsable(EditorBrowsableState.Never)]
628 public static void SetPanGestureProperties(PanGesture pan)
630 NDalicPINVOKE.PanGestureDetector_SetPanGestureProperties(PanGesture.getCPtr(pan));
631 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
635 /// Retrieves the screen position.
637 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
638 [EditorBrowsable(EditorBrowsableState.Never)]
639 public Vector2 ScreenPosition
643 Vector2 temp = new Vector2(0.0f, 0.0f);
644 Tizen.NUI.Object.GetProperty(swigCPtr, PanGestureDetector.Property.SCREEN_POSITION).Get(temp);
650 /// Retrieves the screen displacement.
652 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
653 [EditorBrowsable(EditorBrowsableState.Never)]
654 public Vector2 ScreenDisplacement
658 Vector2 temp = new Vector2(0.0f, 0.0f);
659 Tizen.NUI.Object.GetProperty(swigCPtr, PanGestureDetector.Property.SCREEN_DISPLACEMENT).Get(temp);
665 /// Retrieves the screen velocity.
667 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
668 [EditorBrowsable(EditorBrowsableState.Never)]
669 public Vector2 ScreenVelocity
673 Vector2 temp = new Vector2(0.0f, 0.0f);
674 Tizen.NUI.Object.GetProperty(swigCPtr, PanGestureDetector.Property.SCREEN_VELOCITY).Get(temp);
680 /// Retrieves the local position.
682 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
683 [EditorBrowsable(EditorBrowsableState.Never)]
684 public Vector2 LocalPosition
688 Vector2 temp = new Vector2(0.0f, 0.0f);
689 Tizen.NUI.Object.GetProperty(swigCPtr, PanGestureDetector.Property.LOCAL_POSITION).Get(temp);
695 /// Retrieves the local displacement
697 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
698 [EditorBrowsable(EditorBrowsableState.Never)]
699 public Vector2 LocalDisplacement
703 Vector2 temp = new Vector2(0.0f, 0.0f);
704 Tizen.NUI.Object.GetProperty(swigCPtr, PanGestureDetector.Property.LOCAL_DISPLACEMENT).Get(temp);
710 /// Retrieves the local velocity.
712 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
713 [EditorBrowsable(EditorBrowsableState.Never)]
714 public Vector2 LocalVelocity
718 Vector2 temp = new Vector2(0.0f, 0.0f);
719 Tizen.NUI.Object.GetProperty(swigCPtr, PanGestureDetector.Property.LOCAL_VELOCITY).Get(temp);
725 /// Retrieves the panning flag.
727 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
728 [EditorBrowsable(EditorBrowsableState.Never)]
734 Tizen.NUI.Object.GetProperty(swigCPtr, PanGestureDetector.Property.PANNING).Get(out temp);