constrain_size


Description:

public static void constrain_size (Geometry geometry, WindowHints flags, int width, int height, out int new_width, out int new_height)

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

Parameters:

geometry

a Geometry structure

flags

a mask indicating what portions of geometry are set

width

desired width of window

height

desired height of the window

new_width

location to store resulting width

new_height

location to store resulting height