From fbe2627fd4f583c168ed07d8a80480f672deb937 Mon Sep 17 00:00:00 2001 From: Nick Gravelyn Date: Thu, 12 Jun 2014 22:51:38 -0700 Subject: [PATCH] Added SDL_Window[Get/Set]MinimumSize and SDL_Window[Get/Set]MaximumSize. --- src/SDL2.cs | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/SDL2.cs b/src/SDL2.cs index 146bda8..a63e784 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -1343,6 +1343,22 @@ namespace SDL2 IntPtr window ); + /* window refers to an SDL_Window* */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void SDL_GetWindowMaximumSize( + IntPtr window, + out int max_w, + out int max_h + ); + + /* window refers to an SDL_Window* */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void SDL_GetWindowMinimumSize( + IntPtr window, + out int min_w, + out int min_h + ); + /* window refers to an SDL_Window* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void SDL_GetWindowPosition( @@ -1434,7 +1450,7 @@ namespace SDL2 out int w, out int h ); - + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_GL_SetAttribute( SDL_GLattr attr, @@ -1531,6 +1547,22 @@ namespace SDL2 IntPtr icon ); + /* window refers to an SDL_Window* */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void SDL_SetWindowMaximumSize( + IntPtr window, + int max_w, + int max_h + ); + + /* window refers to an SDL_Window* */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void SDL_SetWindowMinimumSize( + IntPtr window, + int min_w, + int min_h + ); + /* window refers to an SDL_Window* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void SDL_SetWindowPosition(