@@ -143,6 +143,44 @@ 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 SetMinimumSize ( Vector2u ? minimumSize )
153+ {
154+ if ( minimumSize . HasValue )
155+ {
156+ var minimumSizeRef = minimumSize . Value ;
157+ sfRenderWindow_setMinimumSize ( CPointer , ref minimumSizeRef ) ;
158+ }
159+ else
160+ {
161+ sfRenderWindow_setMinimumSize ( CPointer , IntPtr . Zero ) ;
162+ }
163+ }
164+
165+ ////////////////////////////////////////////////////////////
166+ /// <summary>
167+ /// Set the maximum window rendering region size
168+ /// </summary>
169+ /// <param name="maximumSize">New maximum size, in pixels, null to reset the maximum size</param>
170+ ////////////////////////////////////////////////////////////
171+ public override MaximumSize ( Vector2u ? maximumSize )
172+ {
173+ if ( maximumSize . HasValue )
174+ {
175+ var maximumSizeRef = maximumSize . Value ;
176+ sfRenderWindow_setMaximumSize ( CPointer , ref maximumSizeRef ) ;
177+ }
178+ else
179+ {
180+ sfRenderWindow_setMaximumSize ( CPointer , IntPtr . Zero ) ;
181+ }
182+ }
183+
146184 ////////////////////////////////////////////////////////////
147185 /// <summary>
148186 /// Change the title of the window
@@ -210,7 +248,7 @@ public override void SetIcon(Vector2u size, byte[] pixels)
210248 /// Grab or release the mouse cursor
211249 /// </summary>
212250 /// <param name="grabbed">True to grab, false to release</param>
213- ///
251+ ///
214252 /// <remarks>
215253 /// If set, grabs the mouse cursor inside this window's client
216254 /// area so it may no longer be moved outside its bounds.
@@ -329,7 +367,7 @@ public override void SetIcon(Vector2u size, byte[] pixels)
329367 /// The specified stencil value is truncated to the bit
330368 /// width of the current stencil buffer.
331369 /// </summary>
332- /// <param name="color">Fill color to use to clear the render target</param>
370+ /// <param name="color">Fill color to use to clear the render target</param>
333371 /// <param name="stencilValue">Stencil value to clear to</param>
334372 ////////////////////////////////////////////////////////////
335373 public void Clear ( Color color , StencilValue stencilValue ) => sfRenderWindow_clearColorAndStencil ( CPointer , color , stencilValue ) ;
@@ -548,7 +586,7 @@ public void Draw(Vertex[] vertices, uint start, uint count, PrimitiveType type,
548586 /// <summary>
549587 /// Save the current OpenGL render states and matrices.
550588 /// </summary>
551- ///
589+ ///
552590 /// <example>
553591 /// // OpenGL code here...
554592 /// window.PushGLStates();
@@ -602,7 +640,7 @@ public void Draw(Vertex[] vertices, uint start, uint count, PrimitiveType type,
602640 /// states needed by SFML are set, so that subsequent Draw()
603641 /// calls will work as expected.
604642 /// </remarks>
605- ///
643+ ///
606644 /// <example>
607645 /// // OpenGL code here...
608646 /// glPushAttrib(...);
@@ -761,6 +799,18 @@ private void Initialize()
761799 [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
762800 private static extern void sfRenderWindow_setSize ( IntPtr cPointer , Vector2u size ) ;
763801
802+ [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
803+ private static extern void sfRenderWindow_setMinimumSize ( IntPtr cPointer , IntPtr minimumSize ) ;
804+
805+ [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
806+ private static extern void sfRenderWindow_setMinimumSize ( IntPtr cPointer , ref Vector2u minimumSize ) ;
807+
808+ [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
809+ private static extern void sfRenderWindow_setMaximumSize ( IntPtr cPointer , IntPtr maximumSize ) ;
810+
811+ [ DllImport ( CSFML . Graphics , CallingConvention = CallingConvention . Cdecl ) , SuppressUnmanagedCodeSecurity ]
812+ private static extern void sfRenderWindow_setMaximumSize ( IntPtr cPointer , ref 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