Window placement can be influenced using this enumeration. @https://developer.gnome.org/gtk3/3.2/gtk3-Standard-Enumerations.html#GtkWindowPosition
gtk :: GtkWindowPosition :: center
Windows should be placed in the center of the screen.gtk :: GtkWindowPosition :: center_always
Keep window centered as it changes size, etc.gtk :: GtkWindowPosition :: center_on_parent
Center the window on its transient parent.gtk :: GtkWindowPosition :: defaultinit
gtk :: GtkWindowPosition :: mouse
Windows should be placed at the current mouse position.gtk $ GtkWindowPosition :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?gtk :: GtkWindowPosition :: center
Windows should be placed in the center of the screen.gtk :: GtkWindowPosition :: center_always
Keep window centered as it changes size, etc.gtk :: GtkWindowPosition :: center_on_parent
Center the window on its transient parent.core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Pointer :: defaultinit
gtk :: GtkWindowPosition :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
gtk :: GtkWindowPosition :: mouse
Windows should be placed at the current mouse position.core :: Object :: output_class_name
Display class name on stdout (debug only).
#enum GtkWindowPosition
#Window placement can be influenced using this enumeration.
#@https://developer.gnome.org/gtk3/3.2/gtk3-Standard-Enumerations.html#GtkWindowPosition
extern class GtkWindowPosition `{GtkWindowPosition`}
#No influence is made on placement.
new none `{ return GTK_WIN_POS_NONE; `}
#Windows should be placed in the center of the screen.
new center `{ return GTK_WIN_POS_CENTER; `}
#Windows should be placed at the current mouse position.
new mouse `{ return GTK_WIN_POS_MOUSE; `}
#Keep window centered as it changes size, etc.
new center_always `{ return GTK_WIN_POS_CENTER_ALWAYS; `}
#Center the window on its transient parent.
new center_on_parent `{ return GTK_WIN_POS_CENTER_ON_PARENT; `}
end
lib/gtk/v3_4/gtk_enums.nit:325,1--343,3