Esempio n. 1
0
        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);
            });
        }
Esempio n. 2
0
 private void OnLeaveNotifyEvent(object o, LeaveNotifyEventArgs args)
 {
     if (CanResize)
     {
         ResetCursor();
     }
 }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
 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();
 }
Esempio n. 7
0
        //		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;
        }
Esempio n. 8
0
 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;
     }
 }
Esempio n. 9
0
        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();
                }
            });
        }
Esempio n. 10
0
        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);
            });
        }
Esempio n. 11
0
        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;
            }
        }
Esempio n. 12
0
 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);
         });
     }
 }
Esempio n. 13
0
        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();
            }
        }
Esempio n. 14
0
        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?
        }
Esempio n. 15
0
 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);
     }
 }
Esempio n. 16
0
 void HandleLeaveNotifyEventHandler(object o, LeaveNotifyEventArgs args)
 {
     HandleButtonReleaseEvent(drawingWindow, new ButtonReleaseEventArgs());
 }
Esempio n. 17
0
 void LeaveNotifyEventHandler(object o, LeaveNotifyEventArgs args)
 {
     renderer.ClearHighlight();
 }
Esempio n. 18
0
 void HandleKeyTreeLeaveNotifyEvent(object o, LeaveNotifyEventArgs args)
 {
     HideConflictTooltip();
 }
Esempio n. 19
0
 protected void Restore_Leave(object o, LeaveNotifyEventArgs args)
 {
     image_restore.Pixbuf = RestoreImageNormal;
 }
Esempio n. 20
0
 protected void Close_Leave(object o, LeaveNotifyEventArgs args)
 {
     image_close.Pixbuf = CloseImageNormal;
 }
Esempio n. 21
0
        static void HandleLeaveNotifyEvent(object o, LeaveNotifyEventArgs args)
        {
            TreeView tree = (TreeView)o;

            ScheduleHideTooltip(tree);
        }
Esempio n. 22
0
 private void HandleMouseOut(object o, LeaveNotifyEventArgs args)
 {
     isHoveredOver = false;
     Update();
 }
 private void OnPopupLeaveNotifyEvent(object o, LeaveNotifyEventArgs args)
 {
     in_popup = false;
     HidePopup();
 }
Esempio n. 24
0
 private void OnViewportMouseLeave(object o, LeaveNotifyEventArgs args)
 {
     this.Window.Cursor = new Cursor(CursorType.Arrow);
 }
 void TheLeaveNotifyEvent(object o, LeaveNotifyEventArgs args)
 {
     EventBox.GdkWindow.Cursor = null;
 }
Esempio n. 26
0
 private void OnLeaveNotifyEvent(object sender, LeaveNotifyEventArgs a)
 {
     //GdkWindow.Cursor = cursorDefault;
 }
Esempio n. 27
0
 //You know... Autumn... Leaves... Handle leaves... *choked laugh* Nevermind.
 protected void HandleAutumn(object o, LeaveNotifyEventArgs args)
 {
     DrawActiveImage(o, 0);
 }
Esempio n. 28
0
 private void OnLeave(object sender, LeaveNotifyEventArgs e)
 {
 }
Esempio n. 29
0
 void HandleLeaveNotifyEvent(object o, LeaveNotifyEventArgs args)
 {
     mouseOver = false;
     HideTooltip();
 }
Esempio n. 30
0
 void HandleLeaveNotifyEvent(object o, LeaveNotifyEventArgs args)
 {
     this.drawmouse = false;
     this.QueueDraw();
 }