Example #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;
            Toolkit.Invoke(delegate {
                eventSink.OnButtonReleased(args);
            });
        }
Example #2
0
        void HandleWidgetButtonReleaseEvent(object o, Gtk.ButtonReleaseEventArgs args)
        {
            var a = new ButtonEventArgs();

            a.X      = args.Event.X;
            a.Y      = args.Event.Y;
            a.Button = (int)args.Event.Button;
            EventSink.OnButtonReleased(a);
        }
Example #3
0
        public override void MouseUp(NSEvent theEvent)
        {
            var             p    = ConvertPointFromView(theEvent.LocationInWindow, null);
            ButtonEventArgs args = new ButtonEventArgs();

            args.X      = p.X;
            args.Y      = p.Y;
            args.Button = theEvent.ButtonNumber + 1;
            eventSink.OnButtonReleased(args);
        }