예제 #1
0
        protected override bool OnMotionNotifyEvent(Gdk.EventMotion e)
        {
            Margin margin = GetMarginAtX((int)e.X);

            if (margin != null)
            {
                margin.MouseHover(new MarginMouseEventArgs(this, pressedButton, (int)(e.X - margin.XOffset), (int)e.Y, EventType.MotionNotify, e.State));
            }
            return(base.OnMotionNotifyEvent(e));
        }
예제 #2
0
        protected override void OnMouseMoved(MouseMovedEventArgs e)
        {
            base.OnMouseMoved(e);

            Margin margin = GetMarginAtX((int)e.X);

            if (margin != null)
            {
                margin.MouseHover(new MarginMouseMovedEventArgs(this, margin, e));
            }
        }