Exemplo n.º 1
0
        public void MouseMove(Control parent, MouseEventArgs e)
        {
            if (m_MouseOverElement != null && m_MouseOverElement.HitTest(e.X, e.Y))
                return;
            if (m_MouseOverElement != null)
                m_MouseOverElement.MouseLeave(parent);
            
            m_MouseOverElement = null;

            foreach(IActiveMarkupElement el in m_ActiveElements)
            {
                if (el.HitTest(e.X, e.Y))
                {
                    m_MouseOverElement = el;
                    m_MouseOverElement.MouseEnter(parent);
                }
            }
        }
Exemplo n.º 2
0
 public void MouseLeave(Control parent)
 {
     if (m_MouseOverElement != null)
         m_MouseOverElement.MouseLeave(parent);
     m_MouseOverElement = null;
 }