pub trait SeatExt: IsA<Seat> + Sealed + '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§
sourcefn capabilities(&self) -> SeatCapabilities
fn capabilities(&self) -> SeatCapabilities
sourcefn devices(&self, capabilities: SeatCapabilities) -> Vec<Device>
fn devices(&self, capabilities: SeatCapabilities) -> Vec<Device>
sourcefn tools(&self) -> Vec<DeviceTool>
fn tools(&self) -> Vec<DeviceTool>
Returns all GdkDeviceTools
that are known to the application.
§Returns
A list of tools. Free with g_list_free().
sourcefn connect_device_added<F: Fn(&Self, &Device) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_device_added<F: Fn(&Self, &Device) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_device_removed<F: Fn(&Self, &Device) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_device_removed<F: Fn(&Self, &Device) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_tool_added<F: Fn(&Self, &DeviceTool) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_tool_added<F: Fn(&Self, &DeviceTool) + 'static>( &self, f: F ) -> SignalHandlerId
Emitted whenever a new tool is made known to the seat.
The tool may later be assigned to a device (i.e. on
proximity with a tablet). The device will emit the
tool-changed
signal accordingly.
A same tool may be used by several devices.
§tool
the new DeviceTool
known to the seat
sourcefn connect_tool_removed<F: Fn(&Self, &DeviceTool) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_tool_removed<F: Fn(&Self, &DeviceTool) + 'static>( &self, f: F ) -> SignalHandlerId
Object Safety§
This trait is not object safe.