コード例 #1
0
        private static void *__CopyValue(global::SharpSDL.FRect.__Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(global::SharpSDL.FRect.__Internal));

            *(global::SharpSDL.FRect.__Internal *)ret = native;
            return(ret.ToPointer());
        }
コード例 #2
0
 private FRect(global::SharpSDL.FRect.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
コード例 #3
0
 internal static global::SharpSDL.FRect __CreateInstance(global::SharpSDL.FRect.__Internal native, bool skipVTables = false)
 {
     return(new global::SharpSDL.FRect(native, skipVTables));
 }