public TapGestureDetector(TapGestureDetector handle) : this(Interop.TapGestureDetector.NewTapGestureDetector(TapGestureDetector.getCPtr(handle)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
// If two finger long press is done, create a windowView. // then, Register a gesture on the windowView to do a resize or move. private bool OnTick(object o, Timer.TickEventArgs e) { windowView = new View() { WidthResizePolicy = ResizePolicyType.FillToParent, HeightResizePolicy = ResizePolicyType.FillToParent, BackgroundColor = new Color(1, 1, 1, 0.5f), }; windowView.TouchEvent += (s, e) => { return(true); }; BorderWindow.Add(windowView); winTapGestureDetector = new TapGestureDetector(); winTapGestureDetector.Attach(windowView); winTapGestureDetector.SetMaximumTapsRequired(3); winTapGestureDetector.Detected += OnWinTapGestureDetected; winPanGestureDetector = new PanGestureDetector(); winPanGestureDetector.Attach(windowView); winPanGestureDetector.Detected += OnWinPanGestureDetected; BorderWindow.InterceptTouchEvent -= OnWinInterceptedTouch; isWinGestures = true; return(false); }
public TapGestureDetector(TapGestureDetector handle) : this(NDalicPINVOKE.new_TapGestureDetector__SWIG_1(TapGestureDetector.getCPtr(handle)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
internal TapGestureDetector Assign(TapGestureDetector rhs) { TapGestureDetector ret = new TapGestureDetector(Interop.TapGestureDetector.Assign(SwigCPtr, TapGestureDetector.getCPtr(rhs)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static TapGestureDetector GetTapGestureDetectorFromPtr(global::System.IntPtr cPtr) { TapGestureDetector ret = new TapGestureDetector(cPtr, false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal new static TapGestureDetector DownCast(BaseHandle handle) { TapGestureDetector ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TapGestureDetector; if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TapGestureDetector obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr); }