Example #1
0
        internal Pointer(AppKit.NSEvent uiEvent)
        {
            switch (uiEvent.Type)
            {
            case AppKit.NSEventType.DirectTouch:
                PointerDeviceType = PointerDeviceType.Touch;
                break;

            case AppKit.NSEventType.MouseMoved:
                PointerDeviceType = PointerDeviceType.Mouse;
                break;
            }
        }
Example #2
0
        // https://apptyrant.com/2015/05/18/how-to-disable-nsscrollview-scrolling/
        public override void ScrollWheel(AppKit.NSEvent theEvent)
        {
            var elem = Element as Views.DisabledScrollView;

            foreach (var field in typeof(ScrollView).GetRuntimeFields())
            {
                if ("ScrollToRequested" == field.Name)
                {
                    var evt          = field.GetValue(elem.Delegate);
                    var delegateView = (evt as System.EventHandler <ScrollToRequestedEventArgs>).Target as AppKit.NSScrollView;
                    delegateView.ScrollWheel(theEvent);

                    return;
                }
            }
        }
 public virtual override void TabletProximity(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void TabletPoint(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void KeyUp(AppKit.NSEvent theEvent)
 {
 }
Example #6
0
 public virtual override bool PerformKeyEquivalent(AppKit.NSEvent theEvent)
 {
     throw new NotImplementedException();
 }
Example #7
0
 public static Xwt.KeyEventArgs ToXwtKeyEventArgs(this AppKit.NSEvent keyEvent)
 {
     throw new NotImplementedException();
 }
 public virtual override void EndGestureWithEvent(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void RightMouseUp(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void QuickLook(AppKit.NSEvent withEvent)
 {
 }
 // public override void PresentError(Foundation.NSError error, AppKit.NSWindow window, Foundation.NSObject delegate, ObjCRuntime.Selector didPresentSelector, IntPtr contextInfo) {}
 public virtual override void PressureChange(AppKit.NSEvent pressureChangeEvent)
 {
 }
 public virtual override void OtherMouseUp(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void MouseMoved(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void MagnifyWithEvent(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void TouchesMovedWithEvent(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void CursorUpdate(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void RotateWithEvent(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void FlagsChanged(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void ScrollWheel(AppKit.NSEvent theEvent)
 {
 }
Example #20
0
 public static CoreGraphics.CGPoint ConvertPointFromEvent(this AppKit.NSView view, AppKit.NSEvent theEvent)
 {
     throw new NotImplementedException();
 }
 public virtual override bool ShouldBeTreatedAsInkEvent(AppKit.NSEvent theEvent)
 {
     throw new NotImplementedException();
 }
Example #22
0
 public static override void PopUpContextMenu(AppKit.NSMenu menu, AppKit.NSEvent theEvent, AppKit.NSView view, AppKit.NSFont font)
 {
 }
 public virtual override void SmartMagnify(AppKit.NSEvent withEvent)
 {
 }
 public virtual override void SwipeWithEvent(AppKit.NSEvent theEvent)
 {
 }
 public virtual override void HelpRequested(AppKit.NSEvent theEventPtr)
 {
 }