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

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

            cc.SetCursor();
        }
Example #2
0
		internal static IntPtr DefineStdCursor (StdCursor id) {
			CarbonCursor cc = new CarbonCursor (id);
		
			return (IntPtr) GCHandle.Alloc (cc);
		}
Example #3
0
                internal static IntPtr DefineCursor (Bitmap bitmap, Bitmap mask, Color cursor_pixel, Color mask_pixel, int xHotSpot, int yHotSpot) {
			CarbonCursor cc = new CarbonCursor (bitmap, mask, cursor_pixel, mask_pixel, xHotSpot, yHotSpot);

			return (IntPtr) GCHandle.Alloc (cc);
                }
        internal static IntPtr DefineStdCursor(StdCursor id)
        {
            CarbonCursor cc = new CarbonCursor(id);

            return((IntPtr)GCHandle.Alloc(cc));
        }
        internal static IntPtr DefineCursor(Bitmap bitmap, Bitmap mask, Color cursor_pixel, Color mask_pixel, int xHotSpot, int yHotSpot)
        {
            CarbonCursor cc = new CarbonCursor(bitmap, mask, cursor_pixel, mask_pixel, xHotSpot, yHotSpot);

            return((IntPtr)GCHandle.Alloc(cc));
        }