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.

Object Safety§

This trait is not object safe.

Implementors§