@@ -143,6 +143,50 @@ public override Vector2u Size
143143 ////////////////////////////////////////////////////////////
144144 public bool IsSrgb => sfRenderWindow_isSrgb ( CPointer ) ;
145145
146+ ////////////////////////////////////////////////////////////
147+ /// <summary>
148+ /// Set the minimum window rendering region size
149+ /// </summary>
150+ /// <param name="minimumSize">New minimum size, in pixels, null to reset the minimum size</param>
151+ ////////////////////////////////////////////////////////////
152+ public override void SetMinimumSize ( Vector2u ? minimumSize )
153+ {
154+ unsafe
155+ {
156+ if ( minimumSize . HasValue )
157+ {
158+ var minimumSizeRef = minimumSize . Value ;
159+ sfRenderWindow_setMinimumSize ( CPointer , & minimumSizeRef ) ;
160+ }
161+ else
162+ {
163+ sfRenderWindow_setMinimumSize ( CPointer , null ) ;
164+ }
165+ }
166+ }
167+
168+ ////////////////////////////////////////////////////////////
169+ /// <summary>
170+ /// Set the maximum window rendering region size
171+ /// </summary>
172+ /// <param name="maximumSize">New maximum size, in pixels, null to reset the maximum size</param>
173+ ////////////////////////////////////////////////////////////
174+ public override void SetMaximumSize ( Vector2u ? maximumSize )
175+ {
176+ unsafe
177+ {
178+ if ( maximumSize . HasValue )
179+ {
180+ var maximumSizeRef = maximumSize . Value ;
181+ sfRenderWindow_setMaximumSize ( CPointer , & maximumSizeRef ) ;
182+ }
183+ else
184+ {
185+ sfRenderWindow_setMaximumSize ( CPointer , null ) ;
186+ }
187+ }
188+ }
189+
146190 ////////////////////////////////////////////////////////////
147191 /// <summary>
148192 /// Change the title of the window
@@ -210,7 +254,7 @@ public override void SetIcon(Vector2u size, byte[] pixels)
210254 /// Grab or release the mouse cursor
211255 /// </summary>
212256 /// <param name="grabbed">True to grab, false to release</param>
213- ///
257+ ///
214258 /// <remarks>
215259 /// If set, grabs the mouse cursor inside this window's client
216260 /// area so it may no longer be moved outside its bounds.
@@ -329,7 +373,7 @@ public override void SetIcon(Vector2u size, byte[] pixels)
329373 /// The specified stencil value is truncated to the bit
330374 /// width of the current stencil buffer.
331375 /// </summary>
332- /// <param name="color">Fill color to use to clear the render target</param>
376+ /// <param name="color">Fill color to use to clear the render target</param>
333377 /// <param name="stencilValue">Stencil value to clear to</param>
334378 ////////////////////////////////////////////////////////////
335379 public void Clear ( Color color , StencilValue stencilValue ) => sfRenderWindow_clearColorAndStencil ( CPointer , color , stencilValue ) ;
@@ -548,7 +592,7 @@ public void Draw(Vertex[] vertices, uint start, uint count, PrimitiveType type,
548592 /// <summary>
549593 /// Save the current OpenGL render states and matrices.
550594 /// </summary>
551- ///
595+ ///
552596 /// <example>
553597 /// // OpenGL code here...
554598 /// window.PushGLStates();
@@ -602,7 +646,7 @@ public void Draw(Vertex[] vertices, uint start, uint count, PrimitiveType type,
602646 /// states needed by SFML are set, so that subsequent Draw()
603647 /// calls will work as expected.
604648 /// </remarks>
605- ///
649+ ///
606650 /// <example>
607651 /// // OpenGL code here...
608652 /// glPushAttrib(...);
@@ -761,6 +805,12 @@ private void Initialize()
761805 [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
762806 private static extern void sfRenderWindow_setSize ( IntPtr cPointer , Vector2u size ) ;
763807
808+ [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
809+ private static extern unsafe void sfRenderWindow_setMinimumSize ( IntPtr cPointer , Vector2u * minimumSize ) ;
810+
811+ [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
812+ private static extern unsafe void sfRenderWindow_setMaximumSize ( IntPtr cPointer , Vector2u * maximumSize ) ;
813+
764814 [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
765815 private static extern void sfRenderWindow_setUnicodeTitle ( IntPtr cPointer , IntPtr title ) ;
766816
0 commit comments