pub trait SeatExt: IsA<Seat> + Sealed + 'static {
// Provided methods
fn capabilities(&self) -> SeatCapabilities { ... }
fn display(&self) -> Option<Display> { ... }
fn keyboard(&self) -> Option<Device> { ... }
fn pointer(&self) -> Option<Device> { ... }
fn slaves(&self, capabilities: SeatCapabilities) -> Vec<Device> { ... }
fn grab(
&self,
window: &Window,
capabilities: SeatCapabilities,
owner_events: bool,
cursor: Option<&Cursor>,
event: Option<&Event>,
prepare_func: Option<&mut dyn FnMut(&Seat, &Window)>
) -> GrabStatus { ... }
fn ungrab(&self) { ... }
fn connect_device_added<F: Fn(&Self, &Device) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_device_removed<F: Fn(&Self, &Device) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_tool_added<F: Fn(&Self, &DeviceTool) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_tool_removed<F: Fn(&Self, &DeviceTool) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}