Trait gdk4::prelude::SeatExt

source ·
pub trait SeatExt: 'static {
    // Required 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;
}

Required 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

Implementors§

source§

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