Enumeration

GtkWindowPosition

Declaration

enum Gtk.WindowPosition

Description [src]

Window placement can be influenced using this enumeration. Note that using #GTK_WIN_POS_CENTER_ALWAYS is almost always a bad idea. It won’t necessarily work well with all window managers or on all windowing systems.

Members

GTK_WIN_POS_NONE

No influence is made on placement.

  • Value: 0
  • Available since: 3.0
GTK_WIN_POS_CENTER

Windows should be placed in the center of the screen.

  • Value: 1
  • Available since: 3.0
GTK_WIN_POS_MOUSE

Windows should be placed at the current mouse position.

  • Value: 2
  • Available since: 3.0
GTK_WIN_POS_CENTER_ALWAYS

Keep window centered as it changes size, etc.

  • Value: 3
  • Available since: 3.0
GTK_WIN_POS_CENTER_ON_PARENT

Center the window on its transient parent (see gtk_window_set_transient_for()).

  • Value: 4
  • Available since: 3.0