Package: gtk

Accessor gtk:window-gravity

Lambda List

gtk:window-gravity (object)

Syntax

(gtk:window-gravity object) => gravity
(setf (gtk:window-gravity object) gravity)

Arguments

object -- a gtk:window widget
gravity -- a gtk:window-gravity value

Details

The accessor for the gravity slot of the gtk:window class gets or sets the gravity that is used when changing the window size programmatically.

Gravity describes which point of the window we want to keep fixed, meaning that the window will grow in the opposite direction. For example, a gravity of :top-right means that we want the to fix top right corner of the window.

Since 4.20
 

See also

2025-12-08