void SetActivitiesCursor (NSEvent e) { var pt = activitiesView.ConvertPointFromView (e.LocationInWindow, null).ToPoint (); var cursor = Metrics.GetCursor (pt, viewMetrics, eventsHandler, () => new LJD.Graphics ()); if (cursor == CursorType.Hand) NSCursor.PointingHandCursor.Set (); else NSCursor.ArrowCursor.Set (); }
private void activitiesViewPanel_SetCursor(object sender, HandledMouseEventArgs e) { if (eventsHandler == null) { return; } var cursor = Metrics.GetCursor(e.Location, GetUpToDateViewMetrics(), eventsHandler, () => new LJD.Graphics(CreateGraphics(), ownsGraphics: true)); if (cursor == CursorType.Hand) { Cursor.Current = Cursors.Hand; e.Handled = true; } }