Esempio n. 1
0
        /// <summary>Gets the clipping rectangle for the destination surface in a blit.</summary>
/// <remarks>
/// <para>must be a pointer to a valid rectangle which will be filled</para>
/// <para>with the correct values.</para>
/// </remarks>
        public static void GetClipRect(global::SharpSDL.Surface surface, global::SharpSDL.Rect rect)
        {
            var __arg0 = ReferenceEquals(surface, null) ? global::System.IntPtr.Zero : surface.__Instance;
            var __arg1 = ReferenceEquals(rect, null) ? global::System.IntPtr.Zero : rect.__Instance;

            __Internal.GetClipRect(__arg0, __arg1);
        }
Esempio n. 2
0
 public Rect(global::SharpSDL.Rect _0)
 {
     __Instance                     = Marshal.AllocHGlobal(sizeof(global::SharpSDL.Rect.__Internal));
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
     *((global::SharpSDL.Rect.__Internal *)__Instance) = *((global::SharpSDL.Rect.__Internal *)_0.__Instance);
 }
Esempio n. 3
0
        public static int FillRects(global::SharpSDL.Surface dst, global::SharpSDL.Rect rects, int count, uint color)
        {
            var __arg0 = ReferenceEquals(dst, null) ? global::System.IntPtr.Zero : dst.__Instance;
            var __arg1 = ReferenceEquals(rects, null) ? global::System.IntPtr.Zero : rects.__Instance;
            var __ret  = __Internal.FillRects(__arg0, __arg1, count, color);

            return(__ret);
        }
Esempio n. 4
0
        /// <summary>Calculate the union of two rectangles.</summary>
        public static void UnionRect(global::SharpSDL.Rect A, global::SharpSDL.Rect B, global::SharpSDL.Rect result)
        {
            var __arg0 = ReferenceEquals(A, null) ? global::System.IntPtr.Zero : A.__Instance;
            var __arg1 = ReferenceEquals(B, null) ? global::System.IntPtr.Zero : B.__Instance;
            var __arg2 = ReferenceEquals(result, null) ? global::System.IntPtr.Zero : result.__Instance;

            __Internal.UnionRect(__arg0, __arg1, __arg2);
        }
Esempio n. 5
0
        /// <summary>
/// <para>Perform a fast, low quality, stretch blit between two surfaces of the</para>
/// <para>same pixel format.</para>
/// </summary>
/// <remarks>This function uses a static buffer, and is not thread-safe.</remarks>
        public static int SoftStretch(global::SharpSDL.Surface src, global::SharpSDL.Rect srcrect, global::SharpSDL.Surface dst, global::SharpSDL.Rect dstrect)
        {
            var __arg0 = ReferenceEquals(src, null) ? global::System.IntPtr.Zero : src.__Instance;
            var __arg1 = ReferenceEquals(srcrect, null) ? global::System.IntPtr.Zero : srcrect.__Instance;
            var __arg2 = ReferenceEquals(dst, null) ? global::System.IntPtr.Zero : dst.__Instance;
            var __arg3 = ReferenceEquals(dstrect, null) ? global::System.IntPtr.Zero : dstrect.__Instance;
            var __ret  = __Internal.SoftStretch(__arg0, __arg1, __arg2, __arg3);

            return(__ret);
        }
Esempio n. 6
0
        /// <summary>
/// <para>Set the rectangle used to type Unicode text inputs.</para>
/// <para>This is used as a hint for IME and on-screen keyboard placement.</para>
/// </summary>
/// <remarks>SDL_StartTextInput()</remarks>
        public static void SetTextInputRect(global::SharpSDL.Rect rect)
        {
            var __arg0 = ReferenceEquals(rect, null) ? global::System.IntPtr.Zero : rect.__Instance;

            __Internal.SetTextInputRect(__arg0);
        }