Ejemplo n.º 1
0
 protected override bool OnEnterNotifyEvent(EventCrossing evnt)
 {
     focus = true;
     State = Gtk.StateType.Prelight;
     QueueDraw();
     return(base.OnEnterNotifyEvent(evnt));
 }
Ejemplo n.º 2
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     focus = false;
     State = Gtk.StateType.Normal;
     QueueDraw();
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 3
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     selectedHunk = Hunk.Empty;
     TooltipText  = null;
     QueueDraw();
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 4
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     if (!dragging && evnt.Mode != CrossingMode.Grab)
     {
         ResetHandleHighlight();
     }
     return(base.OnLeaveNotifyEvent(evnt));
 }
 /// <summary>
 /// Creates the mouse event arguments for an enter/leave event.
 /// </summary>
 /// <param name="e">The event crossing args.</param>
 /// <returns>Mouse event arguments.</returns>
 public static OxyMouseEventArgs ToMouseEventArgs(this EventCrossing e)
 {
     return(new OxyMouseEventArgs
     {
         Position = new ScreenPoint(e.X, e.Y),
         ModifierKeys = GetModifiers(e.State)
     });
 }
Ejemplo n.º 6
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     if (draggingTab && placeholderWindow == null && !mouseHasLeft)
     {
         mouseHasLeft = true;
     }
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 7
0
        protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
        {
            Window.Cursor = null;

            _isMouseInClient = false;

            return(base.OnLeaveNotifyEvent(evnt));
        }
Ejemplo n.º 8
0
        protected override bool OnEnterNotifyEvent(EventCrossing evnt)
        {
            Window.Cursor = ConfigurationState.Instance.Hid.EnableMouse ? _invisibleCursor : null;

            _isMouseInClient = true;

            return(base.OnEnterNotifyEvent(evnt));
        }
Ejemplo n.º 9
0
 protected override bool OnEnterNotifyEvent(EventCrossing evnt)
 {
     if (!AcceptFocus)
     {
         AcceptFocus = true;
     }
     return(base.OnEnterNotifyEvent(evnt));
 }
Ejemplo n.º 10
0
        protected override bool OnEnterNotifyEvent(EventCrossing evnt)
        {
            trackingHover = true;
            var hoverIdx = GetSectionHeaderAtPosition((int)evnt.X, (int)evnt.Y);

            SetHoverIndex(hoverIdx);
            return(base.OnEnterNotifyEvent(evnt));
        }
Ejemplo n.º 11
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     if (hoverItem != null)
     {
         hoverItem = null;
         QueueDraw();
     }
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 12
0
        /// <summary>
        /// Handles LeaveNotifyEvent
        /// </summary>
        /// <param name="evnt">
        /// Arguments <see cref="EventCrossing"/>
        /// </param>
        /// <returns>
        /// true or false <see cref="System.Boolean"/>
        /// </returns>
        protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
        {
            if (evnt.Mode == CrossingMode.Normal)
            {
                Hovered = -1;
            }

            return(base.OnLeaveNotifyEvent(evnt));
        }
Ejemplo n.º 13
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     if (!IsInGrab())
     {
         UpdateState(StateType.Normal);
     }
     RemovePreviewPopupTimeout();
     DestroyPreviewWindow();
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 14
0
        protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
        {
            CellNumber cn = new CellNumber {
                X = -1, Y = -1
            };

            mouseOnCell.CellNumber = cn;
            this.QueueDraw();
            return(true);
        }
Ejemplo n.º 15
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     if (ext.smartTagPopupTimeoutId == 0)
     {
         if (!this.IsMouseOver())
         {
             QueueDestroy();
         }
     }
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 16
0
 protected override bool OnEnterNotifyEvent(EventCrossing evnt)
 {
     if (Allocation.Height > Allocation.Width)
     {
         GdkWindow.Cursor = hresizeCursor;
     }
     else
     {
         GdkWindow.Cursor = vresizeCursor;
     }
     return(base.OnEnterNotifyEvent(evnt));
 }
        protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
        {
            isPointerInside = false;
            if (!IsInGrab())
            {
                StartFadeOutAnimation();
            }
            RemovePreviewPopupTimeout();
            DestroyPreviewWindow();

            return(base.OnLeaveNotifyEvent(evnt));
        }
Ejemplo n.º 18
0
 /// <summary>
 /// Called when the mouse leaves the widget.
 /// </summary>
 /// <param name="e">An instance that contains the event data.</param>
 /// <returns><c>true</c> if the event was handled.</returns>
 protected override bool OnLeaveNotifyEvent(EventCrossing e)
 {
     // If mouse has left via an inferior window (ie the tracker label),
     // further propagation of the event could be dangerous; e.g. if it results in
     // the label being moved, it will cause further LeaveNotify and MotionNotify
     // events being fired under X11.
     if (e.Detail == NotifyType.Inferior)
     {
         return(base.OnLeaveNotifyEvent(e));
     }
     return(this.ActualController.HandleMouseLeave(this, e.ToMouseEventArgs()));
 }
Ejemplo n.º 19
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     if (!item.Disabled && Selected)
     {
         Selected = false;
         if (SelectedChanged != null)
         {
             SelectedChanged(this, EventArgs.Empty);
         }
         QueueDraw();
     }
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 20
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     foreach (HotSpot hp in hostSpots)
     {
         if (hp.IsOver && hp.OnMouseLeave != null)
         {
             hp.IsOver = false;
             hp.OnMouseLeave();
             break;
         }
     }
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 21
0
 protected override bool OnEnterNotifyEvent(EventCrossing evnt)
 {
     if (!item.Disabled && !Selected)
     {
         Selected = true;
         if (SelectedChanged != null)
         {
             SelectedChanged(this, EventArgs.Empty);
         }
         QueueDraw();
     }
     return(false);
 }
 protected override bool OnEnterNotifyEvent(EventCrossing evnt)
 {
     isPointerInside = true;
     if (!IsInGrab())
     {
         CancelFadeInTimeout();
         fadeTimeOutHandler = GLib.Timeout.Add(250, delegate {
             StartFadeInAnimation();
             fadeTimeOutHandler = 0;
             return(false);
         });
     }
     return(base.OnEnterNotifyEvent(evnt));
 }
Ejemplo n.º 23
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     pressed = false;
     SetHover(-1);
     return(true);
 }
Ejemplo n.º 24
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     GdkWindow.Cursor = null;
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 25
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     HideTooltip();
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 26
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     highlightAnnotation = null;
     widget.QueueDraw();
     return(base.OnLeaveNotifyEvent(evnt));
 }
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     RemovePreviewPopupTimeout();
     DestroyPreviewWindow();
     return(base.OnLeaveNotifyEvent(evnt));
 }
Ejemplo n.º 28
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     trackingHover = false;
     SetHoverIndex(-1);
     return(base.OnEnterNotifyEvent(evnt));
 }
Ejemplo n.º 29
0
 /// <summary>
 /// Called when the mouse leaves the widget.
 /// </summary>
 /// <param name="e">An instance that contains the event data.</param>
 /// <returns><c>true</c> if the event was handled.</returns>
 protected override bool OnLeaveNotifyEvent(EventCrossing e)
 {
     return(this.ActualController.HandleMouseLeave(this, e.ToMouseEventArgs()));
 }
Ejemplo n.º 30
0
 protected override bool OnEnterNotifyEvent(EventCrossing evnt)
 {
     SetHover(GetItemAt((int)evnt.X, (int)evnt.Y));
     return(true);
 }