public static _View HitTestOutsideFrame( this _View thisView , CGPoint point #if __IOS__ , _Event uievent #endif ) { // All touches that are on this view (and not its subviews) are ignored if (!thisView.Hidden && thisView.GetNativeAlpha() > 0) { foreach (var subview in thisView.Subviews.Safe().Reverse()) { var subPoint = subview.ConvertPointFromView(point, thisView); #if __IOS__ var result = subview.HitTest(subPoint, uievent); #elif __MACOS__ var result = subview.HitTest(subPoint); #endif if (result != null) { return(result); } } } return(null); }
public static void OnTouchUp(Foundation.NSSet touches, UIKit.UIEvent evt) { var handler = TouchUp; if (handler != null) { handler(touches, evt); } }
public override void TouchesEnded(Foundation.NSSet touches, UIKit.UIEvent evt) { var clickable = (ClickableComponent)Entity.GetComponent(typeof(ClickableComponent)); if (clickable == null) { return; } clickable.DoClick(); }
internal Pointer(UIKit.UIEvent uiEvent) { switch (uiEvent.Type) { case UIKit.UIEventType.Touches: case UIKit.UIEventType.Motion: PointerDeviceType = PointerDeviceType.Touch; break; case UIKit.UIEventType.Presses: case UIKit.UIEventType.RemoteControl: PointerDeviceType = PointerDeviceType.Pen; break; } }
partial void RecordException_TouchUpInside(Foundation.NSObject sender, UIKit.UIEvent @event);
partial void PlayerOneOption1(UIKit.UIButton sender, UIKit.UIEvent @event);
partial void OnCloseButtonClick(Foundation.NSObject sender, UIKit.UIEvent @event);
partial void OnCloseButtonTouchUpInside(UIKit.UIButton sender, UIKit.UIEvent @event);
partial void Ok_Tapped(Helseboka.iOS.Common.View.PrimaryActionButton sender, UIKit.UIEvent @event);
partial void SearchText_Changed(UIKit.UITextField sender, UIKit.UIEvent @event);
public override void TouchesCancelled(Foundation.NSSet touches, UIKit.UIEvent evt) { base.TouchesCancelled(touches, evt); View.Opacity = 1.0f; }
public override void TouchesBegan(Foundation.NSSet touches, UIKit.UIEvent evt) { base.TouchesBegan(touches, evt); View.Opacity = 0.5f; }
public override void TouchesEnded(NSSet touches, UIKit.UIEvent evt) { base.TouchesEnded(touches, evt); zxingView.AutoFocus(); }
partial void MessageEditing_Changed(UIKit.UITextField sender, UIKit.UIEvent @event);
partial void StartButton_TouchUpInside(Foundation.NSObject sender, UIKit.UIEvent @event);
partial void Button_Tapped(UIKit.UIButton sender, UIKit.UIEvent @event);