Window.constrainSize

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

class Window
static
void
constrainSize

Parameters

geometry GdkGeometry*

a #GdkGeometry structure

flags GdkWindowHints

a mask indicating what portions of @geometry are set

width int

desired width of window

height int

desired height of the window

newWidth int

location to store resulting width

newHeight int

location to store resulting height

Meta