예제 #1
0
        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);
        }
예제 #2
0
파일: MapHelper.cs 프로젝트: xivk/Mapsui
        public static void OnTouchUp(Foundation.NSSet touches, UIKit.UIEvent evt)
        {
            var handler = TouchUp;

            if (handler != null)
            {
                handler(touches, evt);
            }
        }
예제 #3
0
        public override void TouchesEnded(Foundation.NSSet touches, UIKit.UIEvent evt)
        {
            var clickable = (ClickableComponent)Entity.GetComponent(typeof(ClickableComponent));

            if (clickable == null)
            {
                return;
            }

            clickable.DoClick();
        }
예제 #4
0
파일: Pointer.cs 프로젝트: zzyzy/uno
        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;
            }
        }
예제 #5
0
 partial void RecordException_TouchUpInside(Foundation.NSObject sender, UIKit.UIEvent @event);
partial         void PlayerOneOption1(UIKit.UIButton sender, UIKit.UIEvent @event);
예제 #7
0
 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);
예제 #10
0
 partial void SearchText_Changed(UIKit.UITextField sender, UIKit.UIEvent @event);
예제 #11
0
 public override void TouchesCancelled(Foundation.NSSet touches, UIKit.UIEvent evt)
 {
     base.TouchesCancelled(touches, evt);
     View.Opacity = 1.0f;
 }
예제 #12
0
 public override void TouchesBegan(Foundation.NSSet touches, UIKit.UIEvent evt)
 {
     base.TouchesBegan(touches, evt);
     View.Opacity = 0.5f;
 }
예제 #13
0
        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);
예제 #16
0
 partial void Button_Tapped(UIKit.UIButton sender, UIKit.UIEvent @event);