MouseEnter() public method

public MouseEnter ( PointF location, MouseEventArgs e ) : ChatMessagePart
location System.Drawing.PointF
e MouseEventArgs
return ChatMessagePart
Beispiel #1
0
 public void MouseEnter(PointF location, MouseEventArgs e)
 {
     if (location.X > offset)
     {
         root.MouseEnter(new PointF(location.X - offset, location.Y), e);
     }
 }
Beispiel #2
0
 public override ChatMessagePart MouseMove(PointF location, MouseEventArgs e)
 {
     if (parts == null)
     {
         MouseMoveInternal(location, e);
         return(this);
     }
     else
     {
         return(MouseForwarding(location, e, new ChatMessagePart.ForwardingDelegate(
                                    delegate(ChatMessagePart part, PointF loc, MouseEventArgs ev) {
             ChatMessagePart tmp = part.MouseMove(loc, ev);
             if (previousHover != tmp)
             {
                 if (previousHover != null)
                 {
                     previousHover.MouseLeave(loc, ev);
                 }
                 if (tmp != null)
                 {
                     tmp.MouseEnter(loc, ev);
                 }
             }
             previousHover = tmp;
         })));
     }
 }