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§
sourcefn confined(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
confined_pointer: &ZwpConfinedPointerV1,
surface: &WlSurface,
pointer: &WlPointer,
)
fn confined( &mut self, conn: &Connection, qh: &QueueHandle<Self>, confined_pointer: &ZwpConfinedPointerV1, surface: &WlSurface, pointer: &WlPointer, )
Pointer confinement activated by compositor
sourcefn unconfined(
&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, )
Pointer confinement deactivated by compositor
For Oneshot
constraints, it will not be reactivated.
sourcefn locked(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
locked_pointer: &ZwpLockedPointerV1,
surface: &WlSurface,
pointer: &WlPointer,
)
fn locked( &mut self, conn: &Connection, qh: &QueueHandle<Self>, locked_pointer: &ZwpLockedPointerV1, surface: &WlSurface, pointer: &WlPointer, )
Pointer lock activated by compositor
sourcefn unlocked(
&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, )
Pointer lock deactivated by compositor
For Oneshot
constraints, it will not be reactivated.
Object Safety§
This trait is not object safe.