Property

GtkWindow:gravity

unstable since: 4.20

Declaration

property gravity: Gtk.WindowGravity [ read, write ]

Description [src]

The gravity to use when resizing the window 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 GTK_WINDOW_GRAVITY_TOP_RIGHT means that we want the to fix top right corner of the window.

Type:GtkWindowGravity

Available since: 4.20

Default valueGTK_WINDOW_GRAVITY_TOP_START
Getter methodgtk_window_get_gravity()
Setter methodgtk_window_set_gravity()

Flags

Readableyes
Writableyes
Constructno
Construct onlyno