コード例 #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
ファイル: EntityNode.cs プロジェクト: polytronicgr/Iceland
        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);
コード例 #8
0
 partial void OnCloseButtonTouchUpInside(UIKit.UIButton sender, UIKit.UIEvent @event);
コード例 #9
0
 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();
        }
コード例 #14
0
 partial void MessageEditing_Changed(UIKit.UITextField sender, UIKit.UIEvent @event);
コード例 #15
0
 partial void StartButton_TouchUpInside(Foundation.NSObject sender, UIKit.UIEvent @event);
コード例 #16
0
 partial void Button_Tapped(UIKit.UIButton sender, UIKit.UIEvent @event);