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
(,
uint flags
,
int width
,
int height
,
out int newWidth
,
out int newHeight
)

Parameters

geometry GdkGeometry*

a GdkGeometry structure

flags uint

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. out

newHeight int

location to store resulting height. out

Meta