Exemplo n.º 1
0
        protected override bool OnLeaveNotifyEvent(Gdk.EventCrossing evnt)
        {
            // if we just left or entered from our own child widget
            if (evnt.Detail == Gdk.NotifyType.Inferior)
            {
                return(false);
            }

            isSelected = false;
            QueueDraw();

            // Reset the base color back to normal
            detailsTextView.ModifyBase(StateType.Normal, inactiveBackgroundColor);

            if (closeWindowTimeoutID != 0)
            {
                GLib.Source.Remove(closeWindowTimeoutID);
                closeWindowTimeoutID = 0;
            }

            if (timeout > 0)
            {
                closeWindowTimeoutID = GLib.Timeout.Add(timeout, new GLib.TimeoutHandler(
                                                            HideWindowCallback));
            }

            return(false);
        }
Exemplo n.º 2
0
        protected override bool OnEnterNotifyEvent(Gdk.EventCrossing ec)
        {
            bool result = base.OnEnterNotifyEvent(ec);

            this.mouseInWidget = true;
            return(result);
        }
Exemplo n.º 3
0
        protected override bool OnLeaveNotifyEvent(Gdk.EventCrossing ec)
        {
            bool result = base.OnLeaveNotifyEvent(ec);

            this.mouseInWidget = false;
            this.QueueDraw();
            return(result);
        }
Exemplo n.º 4
0
 protected override bool OnLeaveNotifyEvent(Gdk.EventCrossing evnt)
 {
     if (InternalMouseTracking == false)
     {
         return(base.OnLeaveNotifyEvent(evnt));
     }
     MouseOver = false;
     return(base.OnLeaveNotifyEvent(evnt));
 }
Exemplo n.º 5
0
 protected override bool OnLeaveNotifyEvent(Gdk.EventCrossing evnt)
 {
     if (evnt.Mode == CrossingMode.Normal)
     {
         HideTooltipWindow();
         ClearMouseOverItem();
     }
     return(base.OnLeaveNotifyEvent(evnt));
 }
Exemplo n.º 6
0
        protected override bool OnLeaveNotifyEvent(Gdk.EventCrossing evnt)
        {
            if (CanActivate)
            {
                SetStateFlags(pending_state, true);
            }

            return(base.OnLeaveNotifyEvent(evnt));
        }
Exemplo n.º 7
0
 public void SendManualUpdate(Gdk.EventCrossing evnt)
 {
     // we get screwy inputs sometimes
     if (Math.Abs(evnt.XRoot - Cursor.X) > 100 || Math.Abs(evnt.YRoot - Cursor.Y) > 100)
     {
         OnTimerTick();
         return;
     }
     Update(evnt.Window.Screen, (int)evnt.XRoot, (int)evnt.YRoot, evnt.State);
 }
Exemplo n.º 8
0
        protected override bool OnEnterNotifyEvent(Gdk.EventCrossing evnt)
        {
            if (!CanActivate)
            {
                return(base.OnEnterNotifyEvent(evnt));
            }

            pending_state = StateFlags;
            SetStateFlags(StateFlags.Prelight, true);

            return(base.OnEnterNotifyEvent(evnt));
        }
Exemplo n.º 9
0
        protected override bool OnEnterNotifyEvent(Gdk.EventCrossing evnt)
        {
            // if we just left or entered from our own child widget
            if (evnt.Detail == Gdk.NotifyType.Inferior)
            {
                return(false);
            }

            if (closeWindowTimeoutID != 0)
            {
                GLib.Source.Remove(closeWindowTimeoutID);
                closeWindowTimeoutID = 0;
            }

            isSelected = true;
            QueueDraw();

            detailsTextView.ModifyBase(StateType.Normal, activeBackgroundColor);

            return(false);
        }
Exemplo n.º 10
0
			protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
			{
				GdkWindow.Cursor = null;
				return base.OnLeaveNotifyEvent (evnt);
			}
Exemplo n.º 11
0
 protected override bool OnLeaveNotifyEvent(Gdk.EventCrossing evnt)
 {
     hover = false;
     LoadImage();
     return(base.OnLeaveNotifyEvent(evnt));
 }
Exemplo n.º 12
0
		protected override bool OnEnterNotifyEvent (EventCrossing evnt)
		{
			State = leaveState;
			return base.OnEnterNotifyEvent (evnt);
		}
		protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
		{
			RemovePreviewPopupTimeout ();
			DestroyPreviewWindow ();
			return base.OnLeaveNotifyEvent (evnt);
		}
Exemplo n.º 14
0
			protected override bool OnEnterNotifyEvent (EventCrossing evnt)
			{
				mouseOver = true;
				QueueDraw ();
				return base.OnEnterNotifyEvent (evnt);
			}
Exemplo n.º 15
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);
		}
Exemplo n.º 16
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());
 }
Exemplo n.º 17
0
 protected override bool OnLeaveNotifyEvent(Gdk.EventCrossing evnt)
 {
     HideTipWindow();
     return(base.OnLeaveNotifyEvent(evnt));
 }
Exemplo n.º 18
0
		protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
		{
			if (draggingTab && placeholderWindow == null && !mouseHasLeft)
				mouseHasLeft = true;
			return base.OnLeaveNotifyEvent (evnt);
		}
Exemplo n.º 19
0
		protected override bool OnEnterNotifyEvent (EventCrossing evnt)
		{
			trackingHover = true;
			var hoverIdx = GetSectionHeaderAtPosition ((int)evnt.X, (int)evnt.Y);
			SetHoverIndex (hoverIdx);
			return base.OnEnterNotifyEvent (evnt);
		}
Exemplo n.º 20
0
		protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
		{
			trackingHover = false;
			SetHoverIndex (-1);
			return base.OnEnterNotifyEvent (evnt);
		}
Exemplo n.º 21
0
        protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
        {
            if (evnt.Mode == CrossingMode.Normal) {
                this.m_Hovered = -1;
                this.QueueDraw ();
            }

            return base.OnLeaveNotifyEvent (evnt);
        }
 protected override bool OnLeaveNotifyEvent(Gdk.EventCrossing ev)
 {
     this.State = Gtk.StateType.Normal;
     return(base.OnLeaveNotifyEvent(ev));
 }
 protected override bool OnEnterNotifyEvent(Gdk.EventCrossing ev)
 {
     this.State = Gtk.StateType.Prelight;
     return(base.OnEnterNotifyEvent(ev));
 }
Exemplo n.º 24
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     /*if (evnt.Time - _dragStartTime > 500)
     {
         GLib.Timeout.Add(500, MultipleSelectOutsideWindowHander);
     }*/
     return base.OnLeaveNotifyEvent(evnt);
 }
Exemplo n.º 25
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     in_thumbnail_region = false;
     return ShowHideCoverArt ();
 }
Exemplo n.º 26
0
		protected override bool OnEnterNotifyEvent (EventCrossing evnt)
		{
			if (!item.Disabled && !Selected) {
				Selected = true;
				if (SelectedChanged != null)
					SelectedChanged (this, EventArgs.Empty);
				QueueDraw ();
			}
			return false;
		}
Exemplo n.º 27
0
			protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
			{
				mouseOver = false;
				QueueDraw ();
				return base.OnLeaveNotifyEvent (evnt);
			}
Exemplo n.º 28
0
			protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
			{
				selectedHunk = Mono.TextEditor.Utils.Hunk.Empty;
				TooltipText = null;
				QueueDraw ();
				return base.OnLeaveNotifyEvent (evnt);
			}
Exemplo n.º 29
0
		protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
		{
			if (hoverItem != null) {
				hoverItem = null;
				QueueDraw ();
			}
			return base.OnLeaveNotifyEvent (evnt);
		}
Exemplo n.º 30
0
			protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
			{
				selectedHunk = null;
				TooltipText = null;
				QueueDraw ();
				return base.OnLeaveNotifyEvent (evnt);
			}
Exemplo n.º 31
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);
		}
Exemplo n.º 32
0
		protected override bool OnEnterNotifyEvent (EventCrossing evnt)
		{
			if (!AcceptFocus)
				AcceptFocus = true;
			return base.OnEnterNotifyEvent (evnt);
		}
Exemplo n.º 33
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     State = StateType.Normal;
     return base.OnLeaveNotifyEvent (evnt);
 }
Exemplo n.º 34
0
		protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
		{
			pressed = false;
			SetHover (-1);
			return true;
		}
Exemplo n.º 35
0
 protected override bool OnEnterNotifyEvent(Gdk.EventCrossing evnt)
 {
     hover = true;
     LoadImage();
     return(base.OnEnterNotifyEvent(evnt));
 }
Exemplo n.º 36
0
 protected override bool OnEnterNotifyEvent(EventCrossing evnt)
 {
     in_thumbnail_region = evnt.X <= Allocation.Height;
     return ShowHideCoverArt ();
 }
Exemplo n.º 37
0
		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);
		}
Exemplo n.º 38
0
 protected override bool OnEnterNotifyEvent(Gdk.EventCrossing evnt)
 {
     CancelDestroy();
     return(base.OnEnterNotifyEvent(evnt));
 }
Exemplo n.º 39
0
		protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
		{
			isPointerInside = false;
			if (!IsInGrab ())
				StartFadeOutAnimation ();
			RemovePreviewPopupTimeout ();
			DestroyPreviewWindow ();

			return base.OnLeaveNotifyEvent (evnt);
		}
Exemplo n.º 40
0
		protected override bool OnEnterNotifyEvent (EventCrossing evnt)
		{
			SetHover (GetItemAt ((int)evnt.X, (int)evnt.Y));
			return true;
		}
Exemplo n.º 41
0
 protected override bool OnLeaveNotifyEvent(EventCrossing evnt)
 {
     if (!dragging && evnt.Mode != CrossingMode.Grab)
         ResetHandleHighlight ();
     return base.OnLeaveNotifyEvent (evnt);
 }
		protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
		{
			Close ();
			return base.OnLeaveNotifyEvent (evnt);
		}
Exemplo n.º 43
0
 protected override bool OnEnterNotifyEvent(Gdk.EventCrossing evnt)
 {
     hovered = true;
     QueueDraw();
     return(base.OnEnterNotifyEvent(evnt));
 }
Exemplo n.º 44
0
			protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
			{
				highlightAnnotation = null;
				widget.QueueDraw ();
				return base.OnLeaveNotifyEvent (evnt);
			}
Exemplo n.º 45
0
 protected override bool OnLeaveNotifyEvent(Gdk.EventCrossing evnt)
 {
     hovered = false;
     QueueDraw();
     return(base.OnLeaveNotifyEvent(evnt));
 }
Exemplo n.º 46
0
		protected override bool OnLeaveNotifyEvent (EventCrossing evnt)
		{
			if (!IsInGrab ())
				UpdateState (StateType.Normal);
			RemovePreviewPopupTimeout ();
			DestroyPreviewWindow ();
			return base.OnLeaveNotifyEvent (evnt);
		}
Exemplo n.º 47
0
			protected override bool OnEnterNotifyEvent (EventCrossing evnt)
			{
				if (Allocation.Height > Allocation.Width)
					GdkWindow.Cursor = hresizeCursor;
				else
					GdkWindow.Cursor = vresizeCursor;
				return base.OnEnterNotifyEvent (evnt);
			}