gravity


Description:

[ ConcreteAccessor ]
[ Version ( since = "4.20" ) ]
public abstract Gravity gravity { get; set; }

The gravity to use when resizing a surface programmatically.

Gravity describes which point of the surface we want to keep fixed (meaning that the surface will grow in the opposite direction). For example, a gravity of `GDK_GRAVITY_NORTH_EAST` means that we want to fix top right corner of the surface.

This property is just a hint that may affect the result when negotiating toplevel sizes with the windowing system. It does not affect interactive resizes started with [method@Gdk.Toplevel.begin_resize].