Enum wayland_protocols::unstable::pointer_constraints::v1::server::zwp_confined_pointer_v1::Request [] [src]

pub enum Request {
    Destroy,
    SetRegion {
        region: Option<Resource<WlRegion>>,
    },
}

Variants

destroy the confined pointer object

Destroy the confined pointer object. If applicable, the compositor will unconfine the pointer.

This is a destructor, once received this object cannot be used any longer.

set a new confine region

Set a new region used to confine the pointer.

The new confine region is double-buffered. The new confine region will only take effect when the associated surface gets its pending state applied. See wl_surface.commit for details.

If the confinement is active when the new confinement region is applied and the pointer ends up outside of newly applied region, the pointer may warped to a position within the new confinement region. If warped, a wl_pointer.motion event will be emitted, but no wp_relative_pointer.relative_motion event.

The compositor may also, instead of using the new region, unconfine the pointer.

For details about the confine region, see wp_confined_pointer.

Fields of SetRegion

Trait Implementations

impl MessageGroup for Request
[src]

[src]

Whether this message is a destructor Read more

[src]

Construct a message of this group from its C representation

[src]

Build a C representation of this message Read more

Auto Trait Implementations

impl Send for Request

impl Sync for Request