Package: gtk

GEnum gtk:window-gravity

Declaration

(gobject:define-genum "GtkWindowGravity" window-gravity
  (:export t
   :type-initializer "gtk_window_gravity_get_type")
  (:top-left 0)
  (:top 1)
  (:top-right 2)
  (:left 3)
  (:center 4)
  (:right 5)
  (:bottom-left 6)
  (:bottom 7)
  (:bottom-right 8)
  (:top-start 9)
  (:top-end 10)
  (:start 11)
  (:end 12)
  (:bottom-start 13)
  (:bottom-end 14))  

Values

:top-left
The top left corner.
:top
The top edge.
:top-right
The top right corner.
:left
The left edge.
:center
The center pointer.
:right
The right edge.
:bottom-left
The bottom left corner.
:bottom
The bottom edge.
:bottom-right
The bottom right corner.
:top-start
The top left or top right corner, depending on the text direction.
:top-end
The top right or top left corner, depending on the text direction.
:start
The left or right edge, depending on the text direction.
:end
The right or left edge, depending on the text direction.
:bottom-start
The bottom left or top right corner, depending on the text direction.
:bottom-end
The bottom right or top left corner, depending on the text direction.

Details

Determines which point or edge of a window is meant to remain fixed when a window changes size.

Since 4.20
 

See also

#2025-11-03