Ejemplo n.º 1
0
        public void MouseMove(RectRegion root, int x, int y)
        {
            MouseX = x;
            MouseY = y;
            Hover  = root.MouseMove(MouseX, MouseY);

            _mouseLeftDown?.MouseLeftDrag(_mouseLeftDown, DragEvent.Drag, x, y);
            _mouseRightDown?.MouseRightDrag(_mouseRightDown, DragEvent.Drag, x, y);
            _mouseMiddleDown?.MouseMiddleDrag(_mouseMiddleDown, DragEvent.Drag, x, y);
        }
Ejemplo n.º 2
0
 public void MouseLeftDown(int x, int y)
 {
     if (Active == null)
     {
         Active = Hover;
     }
     _mouseLeftDown = Active.ParentPath.FirstOrDefault(r => r.RequireMouseLeftCapture);
     _mouseLeftDown?.MouseLeftDrag(_mouseLeftDown, DragEvent.Begin, x, y);
     //Console.WriteLine(nameof(MouseLeftDown));
 }