[][src]Trait wayland_protocols::unstable::pointer_constraints::v1::client::zwp_locked_pointer_v1::EventHandler

pub trait EventHandler {
    fn locked(&mut self, object: ZwpLockedPointerV1) { ... }
fn unlocked(&mut self, object: ZwpLockedPointerV1) { ... } }

An interface for handling events.

Provided methods

fn locked(&mut self, object: ZwpLockedPointerV1)

lock activation event

Notification that the pointer lock of the seat's pointer is activated.

fn unlocked(&mut self, object: ZwpLockedPointerV1)

lock deactivation event

Notification that the pointer lock of the seat's pointer is no longer active. If this is a oneshot pointer lock (see wp_pointer_constraints.lifetime) this object is now defunct and should be destroyed. If this is a persistent pointer lock (see wp_pointer_constraints.lifetime) this pointer lock may again reactivate in the future.

Loading content...

Implementors

Loading content...