[][src]Trait wayland_protocols::unstable::pointer_constraints::v1::server::zwp_confined_pointer_v1::RequestHandler

pub trait RequestHandler {
    fn destroy(&mut self, object: ZwpConfinedPointerV1) { ... }
fn set_region(
        &mut self,
        object: ZwpConfinedPointerV1,
        region: Option<WlRegion>
    ) { ... } }

An interface for handling requests.

Provided methods

fn destroy(&mut self, object: ZwpConfinedPointerV1)

destroy the confined pointer object

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

This is a destructor, you cannot send requests to this object any longer once this method is called.

fn set_region(&mut self, object: ZwpConfinedPointerV1, region: Option<WlRegion>)

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.

Loading content...

Implementors

Loading content...