예제 #1
0
        public override void RightMouseUp(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.OnButtonReleased(args);
            });
        }
예제 #2
0
        public override void RightMouseUp(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.OnButtonReleased(args);
            });
        }
예제 #3
0
        void WidgetMouseUpHandler(object o, MouseButtonEventArgs e)
        {
            var args = ToXwtButtonArgs(e);

            Toolkit.Invoke(delegate() {
                eventSink.OnButtonReleased(args);
            });
            if (args.Handled)
            {
                e.Handled = true;
            }
        }
예제 #4
0
        void WidgetMouseUpHandler(object o, MouseButtonEventArgs e)
        {
            var args = e.ToXwtButtonArgs(Widget);

            Context.InvokeUserCode(delegate()
            {
                eventSink.OnButtonReleased(args);
            });
            if (args.Handled)
            {
                e.Handled = true;
            }
        }