Gdk.Window.SetGeometryHints Method
Sets the geometry hints for this window. Hints flagged in geom_mask are set, hints not flagged in geom_mask are unset. To unset all hints, use a geom_mask of 0 and a geometry of null.

Syntax

public void SetGeometryHints (Geometry geometry, WindowHints geom_mask)

Parameters

geometry
A Gdk.Geometry
geom_mask
A Gdk.WindowHints

Remarks

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 Window.Resize or Window.MoveResize. Note that on X11, this effect has no effect on windows of type GDK_WINDOW_TEMP or windows where override_redirect has been turned on via Window.SetOverrideRedirect since these windows are not resizable by the user. Since you can't count on the windowing system doing the constraints for programmatic resizes, you should generally call Window.ConstrainSize yourself to determine appropriate sizes.

Requirements

Namespace: Gdk
Assembly: gdk-sharp (in gdk-sharp.dll)