Beispiel #1
0
        internal static void SetCursor(IntPtr cursor)
        {
            if (cursor == IntPtr.Zero)
            {
                defcur.SetCursor();
                return;
            }

            CocoaCursor cc = (CocoaCursor)((GCHandle)cursor).Target;

            cc.SetCursor();
        }
Beispiel #2
0
        internal static IntPtr DefineStdCursor(StdCursor id)
        {
            CocoaCursor cc = new CocoaCursor(id);

            return((IntPtr)GCHandle.Alloc(cc));
        }
Beispiel #3
0
        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));
        }