Window.constrainSize

void constrainSize(gdk.types.Geometry geometry, gdk.types.WindowHints flags, int width, int height, out int newWidth, out int newHeight)

Constrains a desired width and height according to a set of geometry hints (such as minimum and maximum size).

Parameters

geometrya #GdkGeometry structure
flagsa mask indicating what portions of geometry are set
widthdesired width of window
heightdesired height of the window
newWidthlocation to store resulting width
newHeightlocation to store resulting height