示例#1
0
        /// <summary>Create a system cursor.</summary>
/// <remarks>SDL_FreeCursor()</remarks>
        public static global::SharpSDL.Cursor CreateSystemCursor(global::SharpSDL.SystemCursor id)
        {
            var __ret = __Internal.CreateSystemCursor(id);

            global::SharpSDL.Cursor __result0;
            if (__ret == IntPtr.Zero)
            {
                __result0 = null;
            }
            else if (global::SharpSDL.Cursor.NativeToManagedMap.ContainsKey(__ret))
            {
                __result0 = (global::SharpSDL.Cursor)global::SharpSDL.Cursor.NativeToManagedMap[__ret];
            }
            else
            {
                __result0 = global::SharpSDL.Cursor.__CreateInstance(__ret);
            }
            return(__result0);
        }
示例#2
0
 internal static extern global::System.IntPtr CreateSystemCursor(global::SharpSDL.SystemCursor id);