void HandleLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { m_cursorX = -1; m_cursorY = -1; this.QueueDraw(); if (m_hideHandler > 0) { return; } // Cancel any active show if (m_showHandler > 0) { GLib.Source.Remove(m_showHandler); m_showHandler = 0; } // Start our animation sequence and track the handler tag m_hideHandler = GLib.Timeout.Add(ANIMATION_TIMEOUT, delegate { m_titleOffset -= 2; if (m_titleOffset < -m_titleHeight) { m_titleOffset = -m_titleHeight; } this.QueueDrawArea(0, 0, this.Allocation.Width, m_titleHeight + m_titleLip); return(m_titleOffset > -m_titleHeight); }); }
private void OnLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { if (CanResize) { ResetCursor(); } }
private void OnWindowLeaveEvent(object o, LeaveNotifyEventArgs args) { try { var properties = BuildProperties(args.Event); var modifiers = GetKeyModifiers(); _ownerEvents.RaisePointerExited( new PointerEventArgs( new Windows.UI.Input.PointerPoint( frameId: GetNextFrameId(), timestamp: args.Event.Time, device: PointerDevice.For(PointerDeviceType.Mouse), pointerId: 0, rawPosition: new Windows.Foundation.Point(args.Event.X, args.Event.Y), position: new Windows.Foundation.Point(args.Event.X, args.Event.Y), isInContact: properties.HasPressedButton, properties: properties ), modifiers ) ); } catch (Exception e) { this.Log().Error("Failed to raise PointerExited", e); } }
private void MouseLeftLink(object sender, LeaveNotifyEventArgs args) { if (_currenturl.Equals("")) { return; } label14.Markup = "<span foreground='#666666' style='italic'>View in browser</span>"; }
private void OnPopupLeaveNotify(object o, LeaveNotifyEventArgs args) { Gdk.Rectangle rect; if (!_popup.Intersect(new Gdk.Rectangle((int)args.Event.X, (int)args.Event.Y, 1, 1), out rect)) { OnLeaveNotifyEvent(o, args); } }
private void LeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { if (args.Event.Detail != Gdk.NotifyType.Nonlinear) { return; } DestroyWindow(); }
// void OnKeyReleaseEvent (object o, KeyReleaseEventArgs args) // { // args.RetVal = true; // } void OnLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { //Console.WriteLine ("OnLeaveNotifyEvent"); if (this.HasFocus) { HasFocus = false; } args.RetVal = true; }
protected void OnEventbox1LeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { if (Highlighted == null) { Gdk.Color col = new Gdk.Color(255, 255, 255); drawingarea1.ModifyBg(StateType.Normal, col); } else { image1.Pixbuf = this.NormalImage; } }
void HandleLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { Inside = false; // Delay the call to the leave handler since the pointer may be // entering a child widget, in which case the event doesn't have to be fired Gtk.Application.Invoke(delegate { if (!Inside) { LeaveHandler(); } }); }
static void HandleLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { TreeView tree = (TreeView)o; TreeViewTooltipsData data; if (!treeData.TryGetValue(tree, out data)) { return; } data.LeaveTimer = GLib.Timeout.Add(50, delegate { data.LeaveTimer = 0; //if (data != null && data.Tooltip != null && data.Tooltip.MouseIsOver) // return false; HideTooltip(tree); return(false); }); }
private void ChildPointerCrossingEventHandler(object sender, LeaveNotifyEventArgs args) { args.RetVal = false; if (_action == NodeViewAction.Resize) { return; } switch (args.Event.Type) { case EventType.LeaveNotify: default: NodeCursorSet(NodeViewAction.None); break; } }
private void OnLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { // Give the user half a second to move the mouse cursor to the popup. if (!_hideDelayStarted) { _hideDelayStarted = true; _cursorOverTrayicon = false; GLib.Timeout.Add(500, delegate { if (_hideDelayStarted) { _hideDelayStarted = false; HidePopup(); } return(false); }); } }
protected void OnMouseLeave(object o, LeaveNotifyEventArgs args) { bool changed = false; if (hoveringIndex != -1) { this.QueueDrawArea(XOffset + HoveringX * TileWidth * Scale, YOffset + HoveringY * TileHeight * Scale, TileWidth * Scale, TileHeight * Scale); changed = true; } hoveringIndex = -1; if (changed && HoverChangedEvent != null) { HoverChangedEvent(); } }
protected void OnMouseLeave(object o, LeaveNotifyEventArgs args) { bool changed = false; if (hoveringIndex != -1) { Cairo.Rectangle rect = GetTileRectWithPadding(HoveringX, HoveringY); this.QueueDrawArea((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height); changed = true; } hoveringIndex = -1; if (changed && HoverChangedEvent != null) { HoverChangedEvent(this, hoveringIndex); } // Don't check for drag actions because we'll ignore out-of-bounds events? }
private void Window_LeaveEvent(object o, LeaveNotifyEventArgs args) { try { _ownerEvents.RaisePointerExited( new PointerEventArgs( new Windows.UI.Input.PointerPoint( frameId: 0, timestamp: args.Event.Time, device: PointerDevice.For(PointerDeviceType.Mouse), pointerId: 0, rawPosition: new Windows.Foundation.Point(args.Event.X, args.Event.Y), position: new Windows.Foundation.Point(args.Event.X, args.Event.Y), isInContact: false, properties: BuildProperties(args.Event) ) ) ); } catch (Exception e) { this.Log().Error("Failed to raise PointerExited", e); } }
void HandleLeaveNotifyEventHandler(object o, LeaveNotifyEventArgs args) { HandleButtonReleaseEvent(drawingWindow, new ButtonReleaseEventArgs()); }
void LeaveNotifyEventHandler(object o, LeaveNotifyEventArgs args) { renderer.ClearHighlight(); }
void HandleKeyTreeLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { HideConflictTooltip(); }
protected void Restore_Leave(object o, LeaveNotifyEventArgs args) { image_restore.Pixbuf = RestoreImageNormal; }
protected void Close_Leave(object o, LeaveNotifyEventArgs args) { image_close.Pixbuf = CloseImageNormal; }
static void HandleLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { TreeView tree = (TreeView)o; ScheduleHideTooltip(tree); }
private void HandleMouseOut(object o, LeaveNotifyEventArgs args) { isHoveredOver = false; Update(); }
private void OnPopupLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { in_popup = false; HidePopup(); }
private void OnViewportMouseLeave(object o, LeaveNotifyEventArgs args) { this.Window.Cursor = new Cursor(CursorType.Arrow); }
void TheLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { EventBox.GdkWindow.Cursor = null; }
private void OnLeaveNotifyEvent(object sender, LeaveNotifyEventArgs a) { //GdkWindow.Cursor = cursorDefault; }
//You know... Autumn... Leaves... Handle leaves... *choked laugh* Nevermind. protected void HandleAutumn(object o, LeaveNotifyEventArgs args) { DrawActiveImage(o, 0); }
private void OnLeave(object sender, LeaveNotifyEventArgs e) { }
void HandleLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { mouseOver = false; HideTooltip(); }
void HandleLeaveNotifyEvent(object o, LeaveNotifyEventArgs args) { this.drawmouse = false; this.QueueDraw(); }