Function
GdkWindowconstrain_size
Declaration [src]
void
gdk_window_constrain_size (
GdkGeometry* geometry,
GdkWindowHints flags,
gint width,
gint height,
gint* new_width,
gint* new_height
)
Description [src]
Constrains a desired width and height according to a set of geometry hints (such as minimum and maximum size).
Parameters
geometry
-
Type:
GdkGeometry
A
GdkGeometry
structure.The data is owned by the caller of the function. flags
-
Type:
GdkWindowHints
A mask indicating what portions of
geometry
are set. width
-
Type:
gint
Desired width of window.
height
-
Type:
gint
Desired height of the window.
new_width
-
Type:
gint*
Location to store resulting width.
The argument will be set by the function. new_height
-
Type:
gint*
Location to store resulting height.
The argument will be set by the function.