Trait PointerConstraintsHandler
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,
);
}Available on crate feature
wayland and Linux only.Required Methods§
fn 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
fn 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.
fn 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
fn 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.
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.