Package: gdk

Function gdk:window-constrain-size

Lambda List

gdk:window-constrain-size (geometry flags width height)

Arguments

geometry -- a gdk:geometry instance
flags -- a gdk:window-hints mask indicating what portions of geometry are set
width -- an integer with the desired width of the window
height -- an integer with the desired height of the window

Return Value

new-width -- an integer with the resulting width
new-height -- an integer with the resulting height

Details

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

See also

#2023-2-26