Trait PointerConstraintsHandler

Source
pub trait PointerConstraintsHandler: Sized {
    // Required methods
    fn confined(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        confined_pointer: &ZwpConfinedPointerV1,
        surface: &WlSurface,
        pointer: &WlPointer,
    );
    fn unconfined(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        confined_pointer: &ZwpConfinedPointerV1,
        surface: &WlSurface,
        pointer: &WlPointer,
    );
    fn locked(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        locked_pointer: &ZwpLockedPointerV1,
        surface: &WlSurface,
        pointer: &WlPointer,
    );
    fn unlocked(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        locked_pointer: &ZwpLockedPointerV1,
        surface: &WlSurface,
        pointer: &WlPointer,
    );
}

Required Methods§

Source

fn confined( &mut self, conn: &Connection, qh: &QueueHandle<Self>, confined_pointer: &ZwpConfinedPointerV1, surface: &WlSurface, pointer: &WlPointer, )

Pointer confinement activated by compositor

Source

fn unconfined( &mut self, conn: &Connection, qh: &QueueHandle<Self>, confined_pointer: &ZwpConfinedPointerV1, surface: &WlSurface, pointer: &WlPointer, )

Pointer confinement deactivated by compositor

For Oneshot constraints, it will not be reactivated.

Source

fn locked( &mut self, conn: &Connection, qh: &QueueHandle<Self>, locked_pointer: &ZwpLockedPointerV1, surface: &WlSurface, pointer: &WlPointer, )

Pointer lock activated by compositor

Source

fn unlocked( &mut self, conn: &Connection, qh: &QueueHandle<Self>, locked_pointer: &ZwpLockedPointerV1, surface: &WlSurface, pointer: &WlPointer, )

Pointer lock deactivated by compositor

For Oneshot constraints, it will not be reactivated.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§