示例#1
0
        void HandleControlEnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args)
        {
            Point        p         = new Point(Convert.ToInt32(args.Event.X), Convert.ToInt32(args.Event.Y));
            Key          modifiers = GetKeyModifiers(args.Event.State);
            MouseButtons buttons   = MouseButtons.None;

            Widget.OnMouseEnter(new MouseEventArgs(buttons, modifiers, p));
        }
示例#2
0
            public void HandleControlEnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args)
            {
                var          p         = new PointF((float)args.Event.X, (float)args.Event.Y);
                Key          modifiers = args.Event.State.ToEtoKey();
                MouseButtons buttons   = MouseButtons.None;

                Handler.Widget.OnMouseEnter(new MouseEventArgs(buttons, modifiers, p));
            }
示例#3
0
 void HandleEnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args)
 {
     if (args.Event.Detail == Gdk.NotifyType.Inferior)
     {
         return;
     }
     ApplicationContext.InvokeUserCode(delegate {
         EventSink.OnMouseEntered();
     });
 }
示例#4
0
 void HandleEnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args)
 {
     if (args.Event.Detail == Gdk.NotifyType.Inferior)
     {
         return;
     }
     Toolkit.Invoke(delegate {
         EventSink.OnMouseEntered();
     });
 }
示例#5
0
        private void HandleEnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args)
        {
            if (d_leaveTimeout != 0)
            {
                GLib.Source.Remove(d_leaveTimeout);
                d_leaveTimeout = 0;
            }

            Move();
            Show();

            args.RetVal = false;
        }
示例#6
0
 private void HandleEnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args)
 {
     // not sizing
     if (this._window.GdkWindow.State != Gdk.WindowState.Maximized)
     {
         if (!IsSizing)
         {
             Gdk.Point localMousePos = Gdk.Point.Zero;
             //new Gdk.Point((int)args.Event.X, (int)args.Event.Y);
             {
                 int vx, vy;
                 this._border.GetPointer(out vx, out vy);
                 localMousePos.X = vx;
                 localMousePos.Y = vy;
             }
             SelectSizingSide(localMousePos);
             SelectCursor();
         }
     }
 }
示例#7
0
 protected virtual void OnEnterNotifyEvent(Gtk.EnterNotifyEventArgs args)
 {
 }
示例#8
0
 private void View_EnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args)
 {
     throw new NotImplementedException();
 }
 //Event Handlers for the hover animations
 //basically just activates an eventbox when the mouse enters an eventbox
 //and makes it normal once it leaves again
 protected virtual void OnHoverEnter(object o, Gtk.EnterNotifyEventArgs args, Gtk.EventBox eBox)
 {
     eBox.State = Gtk.StateType.Selected;
 }
示例#10
0
 void HandleEnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args)
 {
     Toolkit.Invoke(delegate {
         EventSink.OnMouseEntered();
     });
 }