[go: up one dir, main page]

SeatExt

Trait SeatExt 

Source
pub trait SeatExt: IsA<Seat> + 'static {
    // Provided methods
    fn capabilities(&self) -> SeatCapabilities { ... }
    fn devices(&self, capabilities: SeatCapabilities) -> Vec<Device> { ... }
    fn display(&self) -> Display { ... }
    fn keyboard(&self) -> Option<Device> { ... }
    fn pointer(&self) -> Option<Device> { ... }
    fn tools(&self) -> Vec<DeviceTool> { ... }
    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 { ... }
}

Provided Methods§

Source

fn capabilities(&self) -> SeatCapabilities

Source

fn devices(&self, capabilities: SeatCapabilities) -> Vec<Device>

Source

fn display(&self) -> Display

Source

fn keyboard(&self) -> Option<Device>

Source

fn pointer(&self) -> Option<Device>

Source

fn tools(&self) -> Vec<DeviceTool>

Source

fn connect_device_added<F: Fn(&Self, &Device) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_device_removed<F: Fn(&Self, &Device) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_tool_added<F: Fn(&Self, &DeviceTool) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_tool_removed<F: Fn(&Self, &DeviceTool) + 'static>( &self, f: F, ) -> SignalHandlerId

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.

Implementors§

Source§

impl<O: IsA<Seat>> SeatExt for O