[][src]Function wayland_raw_protocol_bindings::client::xdg_shell::xdg_positioner::xdg_positioner_set_gravity

pub unsafe fn xdg_positioner_set_gravity(
    xdg_positioner: *mut xdg_positioner,
    gravity: u32
)

set child surface gravity

Defines in what direction a surface should be positioned, relative to the anchor point of the parent surface. If a corner gravity is specified (e.g. 'bottom_right' or 'top_left'), then the child surface will be placed towards the specified gravity; otherwise, the child surface will be centered over the anchor point on any axis that had no gravity specified.