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)); }
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)); }
void HandleEnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args) { if (args.Event.Detail == Gdk.NotifyType.Inferior) { return; } ApplicationContext.InvokeUserCode(delegate { EventSink.OnMouseEntered(); }); }
void HandleEnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args) { if (args.Event.Detail == Gdk.NotifyType.Inferior) { return; } Toolkit.Invoke(delegate { EventSink.OnMouseEntered(); }); }
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; }
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(); } } }
protected virtual void OnEnterNotifyEvent(Gtk.EnterNotifyEventArgs args) { }
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; }
void HandleEnterNotifyEvent(object o, Gtk.EnterNotifyEventArgs args) { Toolkit.Invoke(delegate { EventSink.OnMouseEntered(); }); }