@@ -143,6 +143,28 @@ 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+ sfRenderWindow_setMinimumSize ( CPointer , minimumSizeRef ) ;
155+ }
156+
157+ ////////////////////////////////////////////////////////////
158+ /// <summary>
159+ /// Set the maximum window rendering region size
160+ /// </summary>
161+ /// <param name="maximumSize">New maximum size, in pixels, null to reset the maximum size</param>
162+ ////////////////////////////////////////////////////////////
163+ public override void SetMaximumSize ( Vector2u ? maximumSize )
164+ {
165+ sfRenderWindow_setMaximumSize ( CPointer , maximumSizeRef ) ;
166+ }
167+
146168 ////////////////////////////////////////////////////////////
147169 /// <summary>
148170 /// Change the title of the window
@@ -210,7 +232,7 @@ public override void SetIcon(Vector2u size, byte[] pixels)
210232 /// Grab or release the mouse cursor
211233 /// </summary>
212234 /// <param name="grabbed">True to grab, false to release</param>
213- ///
235+ ///
214236 /// <remarks>
215237 /// If set, grabs the mouse cursor inside this window's client
216238 /// area so it may no longer be moved outside its bounds.
@@ -329,7 +351,7 @@ public override void SetIcon(Vector2u size, byte[] pixels)
329351 /// The specified stencil value is truncated to the bit
330352 /// width of the current stencil buffer.
331353 /// </summary>
332- /// <param name="color">Fill color to use to clear the render target</param>
354+ /// <param name="color">Fill color to use to clear the render target</param>
333355 /// <param name="stencilValue">Stencil value to clear to</param>
334356 ////////////////////////////////////////////////////////////
335357 public void Clear ( Color color , StencilValue stencilValue ) => sfRenderWindow_clearColorAndStencil ( CPointer , color , stencilValue ) ;
@@ -548,7 +570,7 @@ public void Draw(Vertex[] vertices, uint start, uint count, PrimitiveType type,
548570 /// <summary>
549571 /// Save the current OpenGL render states and matrices.
550572 /// </summary>
551- ///
573+ ///
552574 /// <example>
553575 /// // OpenGL code here...
554576 /// window.PushGLStates();
@@ -602,7 +624,7 @@ public void Draw(Vertex[] vertices, uint start, uint count, PrimitiveType type,
602624 /// states needed by SFML are set, so that subsequent Draw()
603625 /// calls will work as expected.
604626 /// </remarks>
605- ///
627+ ///
606628 /// <example>
607629 /// // OpenGL code here...
608630 /// glPushAttrib(...);
@@ -761,6 +783,12 @@ private void Initialize()
761783 [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
762784 private static extern void sfRenderWindow_setSize ( IntPtr cPointer , Vector2u size ) ;
763785
786+ [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
787+ private static extern void sfRenderWindow_setMinimumSize ( IntPtr cPointer , Vector2u * minimumSize ) ;
788+
789+ [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
790+ private static extern void sfRenderWindow_setMaximumSize ( IntPtr cPointer , Vector2u * maximumSize ) ;
791+
764792 [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
765793 private static extern void sfRenderWindow_setUnicodeTitle ( IntPtr cPointer , IntPtr title ) ;
766794
0 commit comments