Beispiel #1
0
 public SDL_WindowShapeMode(global::SharpSDL.SDL_WindowShapeMode _0)
 {
     __Instance                     = Marshal.AllocHGlobal(sizeof(global::SharpSDL.SDL_WindowShapeMode.__Internal));
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
     *((global::SharpSDL.SDL_WindowShapeMode.__Internal *)__Instance) = *((global::SharpSDL.SDL_WindowShapeMode.__Internal *)_0.__Instance);
 }
Beispiel #2
0
        /// <summary>Get the shape parameters of a shaped window.</summary>
/// <param name="window">The shaped window whose parameters should be retrieved.</param>
/// <param name="shape_mode">An empty shape-mode structure to fill, or NULL to check whether the window has a shape.</param>
/// <returns>
/// <para>0 if the window has a shape and, provided shape_mode was not NULL, shape_mode has been filled with the mode</para>
/// <para>data, SDL_NONSHAPEABLE_WINDOW if the SDL_Window given is not a shaped window, or SDL_WINDOW_LACKS_SHAPE if</para>
/// <para>the SDL_Window given is a shapeable window currently lacking a shape.</para>
/// </returns>
/// <remarks>
/// <para>SDL_WindowShapeMode</para>
/// <para>SDL_SetWindowShape</para>
/// </remarks>
        public static int GetShapedWindowMode(global::SharpSDL.Window window, global::SharpSDL.SDL_WindowShapeMode shape_mode)
        {
            var __arg0 = ReferenceEquals(window, null) ? global::System.IntPtr.Zero : window.__Instance;
            var __arg1 = ReferenceEquals(shape_mode, null) ? global::System.IntPtr.Zero : shape_mode.__Instance;
            var __ret  = __Internal.GetShapedWindowMode(__arg0, __arg1);

            return(__ret);
        }