Esempio n. 1
0
        public override void RightMouseDown(NSEvent theEvent)
        {
            var             p    = ConvertPointFromView(theEvent.LocationInWindow, null);
            ButtonEventArgs args = new ButtonEventArgs();

            args.X      = p.X;
            args.Y      = p.Y;
            args.Button = PointerButton.Right;
            context.InvokeUserCode(delegate {
                eventSink.OnButtonPressed(args);
            });
        }
Esempio n. 2
0
        public override void RightMouseDown(NSEvent theEvent)
        {
            CGPoint p = this.ConvertPointFromEvent(theEvent);

            if (!Bounds.Contains(p))
            {
                return;
            }
            ButtonEventArgs args = new ButtonEventArgs();

            args.X      = p.X;
            args.Y      = p.Y;
            args.Button = PointerButton.Right;
            context.InvokeUserCode(delegate {
                eventSink.OnButtonPressed(args);
            });
        }
Esempio n. 3
0
        void WidgetMouseDownHandler(object o, MouseButtonEventArgs e)
        {
            var args = e.ToXwtButtonArgs(Widget);

            Context.InvokeUserCode(delegate() {
                eventSink.OnButtonPressed(args);
            });
            if (args.Handled)
            {
                e.Handled = true;
            }
        }
Esempio n. 4
0
        void WidgetMouseDownHandler(object o, MouseButtonEventArgs e)
        {
            var args = ToXwtButtonArgs(e);

            Toolkit.Invoke(delegate() {
                eventSink.OnButtonPressed(args);
            });
            if (args.Handled)
            {
                e.Handled = true;
            }
        }