예제 #1
0
		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 ();
		}
예제 #2
0
        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;
            }
        }