Exemple #1
0
            public static void FreeManagedPtr_inner(System.IntPtr ptr)
            {
                Rect_Struct obj = (Rect_Struct)Marshal.PtrToStructure(ptr, typeof(Rect_Struct));

                if (obj._owner != 0x972f3813)
                {
                    throw new System.InvalidOperationException();
                }
            }
Exemple #2
0
            public static void MarshalOut(System.IntPtr ptr, android.graphics.Rect arg)
            {
                Rect_Struct obj = (Rect_Struct)Marshal.PtrToStructure(ptr, typeof(Rect_Struct));

                arg.left   = obj.left;
                arg.top    = obj.top;
                arg.right  = obj.right;
                arg.bottom = obj.bottom;
            }
Exemple #3
0
            public static void MarshalIn(System.IntPtr ptr, android.graphics.Rect arg)
            {
                Rect_Struct obj = new Rect_Struct();

                obj._owner = 0x972f3813;
                obj.left   = arg.left;
                obj.top    = arg.top;
                obj.right  = arg.right;
                obj.bottom = arg.bottom;
                Marshal.StructureToPtr(obj, ptr, false);
            }
Exemple #4
0
            public static android.graphics.Rect NativeToManaged(System.IntPtr ptr)
            {
                if (ptr == System.IntPtr.Zero)
                {
                    return(null);
                }
                Rect_Struct obj = (Rect_Struct)Marshal.PtrToStructure(ptr, typeof(Rect_Struct));

                android.graphics.Rect arg = new android.graphics.Rect();
                arg.left   = obj.left;
                arg.top    = obj.top;
                arg.right  = obj.right;
                arg.bottom = obj.bottom;
                return(arg);
            }