Returns the gravity that is used when changing the window size programmatically.
a window
the gravity