Example #1
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            DrawingUtils.CursorType newCursor;
            DrawingUtils.MouseMoveHelper(presentationDataAccess, drawContext, ClientRectangle, viewEvents, e.Location,
                                         e.Button == MouseButtons.Left && this.Capture, out newCursor);

            Cursor newNativeCursor = Cursors.Arrow;

            if (newCursor == DrawingUtils.CursorType.Arrow)
            {
                newNativeCursor = Cursors.Arrow;
            }
            else if (newCursor == DrawingUtils.CursorType.IBeam)
            {
                newNativeCursor = Cursors.IBeam;
            }
            else if (newCursor == DrawingUtils.CursorType.RightToLeftArrow)
            {
                newNativeCursor = rightCursor;
            }
            if (Cursor != newNativeCursor)
            {
                Cursor = newNativeCursor;
            }

            base.OnMouseMove(e);
        }
 internal void OnMouseMove(NSEvent e, bool dragging)
 {
     DrawingUtils.CursorType cursor;
     DrawingUtils.MouseMoveHelper(
         presentationDataAccess,
         drawContext,
         ClientRectangle,
         viewEvents,
         InnerView.ConvertPointFromView(e.LocationInWindow, null).ToPoint(),
         dragging,
         out cursor
         );
 }