internal static void SetCursor(IntPtr cursor) { if (cursor == IntPtr.Zero) { defcur.SetCursor(); return; } CocoaCursor cc = (CocoaCursor)((GCHandle)cursor).Target; cc.SetCursor(); }
internal static IntPtr DefineStdCursor(StdCursor id) { CocoaCursor cc = new CocoaCursor(id); return((IntPtr)GCHandle.Alloc(cc)); }
internal static IntPtr DefineCursor(Bitmap bitmap, Bitmap mask, Color cursor_pixel, Color mask_pixel, int xHotSpot, int yHotSpot) { CocoaCursor cc = new CocoaCursor(bitmap, mask, cursor_pixel, mask_pixel, xHotSpot, yHotSpot); return((IntPtr)GCHandle.Alloc(cc)); }