Package: gdk

Function gdk-window-set-geometry-hints

Lambda List

gdk-window-set-geometry-hints (window geometry geometry-mask)

Arguments

window -- a toplevel gdk-window object
geometry -- geometry hints of type gdk-geometry
geometry-mask -- a gdk-window-hints bitmask indicating fields of geometry to pay attention to

Details

Sets the geometry hints for the window. Hints flagged in geometry-mask are set, hints not flagged are unset.

This function provides hints to the windowing system about acceptable sizes for a toplevel window. The purpose of this is to constrain user resizing, but the windowing system will typically, but is not required to, also constrain the current size of the window to the provided values and constrain programatic resizing via the functions gdk-window-resize or gdk-window-move-resize.

Note that on X11, this effect has no effect on windows of type :temp or windows where override redirect has been turned on via the function gdk-window-set-override-redirect since these windows are not resizable by the user.

Since you cannot count on the windowing system doing the constraints for programmatic resizes, you should generally call the function gdk-window-constrain-size yourself to determine appropriate sizes.
 

See also

2021-5-4