_gtkWindowGeometryHints

This function sets up hints about how a window can be resized by the user. You can set a minimum and maximum size; allowed resize increments (e.g. for xterm, you can only resize by the size of a character); aspect ratios; and more.

Cette fonction définis comment se comporte une fenêtre lors du redimensionnement (tailles minimale et maximale, incrémentation, ratios, etc).

Type :

fun [ObjGtk ObjGtk [I I] [I I] [I I] [I I] [I I] I] ObjGtk

_window_ : ObjGtk : any window already created.

_widget_ : ObjGtk : any widget which will be constraint (if it is not nil, if nil, _window_ will be constraint).

_min_size_ : [I I] : minimum width and height. Nil to use the requisition (if _widget_ is nil only)

_max_size_ : [I I] : maximum width and height. Nil to use the requisition (if _widget_ is nil only)

_base_size_ : [I I] : allowed window widths are base_width + width_inc * N where N is any integer (same thing with the height).

_incnt_ : [I I] : width and height resize increments.

_ratio_ : [I I] : minimum and maximum width/height ratio.

_gravity_ : I : window gravity (not implemented yet, Scol keep the north-west default value).

Return : ObjGtk : the same _window_ or nil if error.

Back