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.
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.