[][src]Function wayland_raw_protocol_bindings::client::xdg_shell_unstable_v6::zxdg_positioner_v6::zxdg_positioner_v6_set_gravity

pub unsafe fn zxdg_positioner_v6_set_gravity(
    zxdg_positioner_v6: *mut zxdg_positioner_v6,
    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 two orthogonal gravities are specified (e.g. 'bottom' and 'right'), then the child surface will be placed in the specified direction; otherwise, the child surface will be centered over the anchor point on any axis that had no gravity specified.

If two parallel gravities are specified (e.g. 'left' and 'right'), the invalid_input error is raised.