pub trait DeviceExt: IsA<Device> + Sealed + 'static {
Show 43 methods
// Provided methods
fn associated_device(&self) -> Option<Device> { ... }
fn axes(&self) -> AxisFlags { ... }
fn axis_use(&self, index_: u32) -> AxisUse { ... }
fn device_type(&self) -> DeviceType { ... }
fn display(&self) -> Display { ... }
fn has_cursor(&self) -> bool { ... }
fn key(&self, index_: u32) -> Option<(u32, ModifierType)> { ... }
fn last_event_window(&self) -> Option<Window> { ... }
fn mode(&self) -> InputMode { ... }
fn n_axes(&self) -> i32 { ... }
fn n_keys(&self) -> i32 { ... }
fn name(&self) -> Option<GString> { ... }
fn position(&self) -> (Screen, i32, i32) { ... }
fn position_double(&self) -> (Screen, f64, f64) { ... }
fn product_id(&self) -> Option<GString> { ... }
fn seat(&self) -> Option<Seat> { ... }
fn source(&self) -> InputSource { ... }
fn vendor_id(&self) -> Option<GString> { ... }
fn window_at_position(&self) -> (Option<Window>, i32, i32) { ... }
fn window_at_position_double(&self) -> (Option<Window>, f64, f64) { ... }
fn list_axes(&self) -> Vec<Atom> { ... }
fn list_slave_devices(&self) -> Vec<Device> { ... }
fn set_axis_use(&self, index_: u32, use_: AxisUse) { ... }
fn set_key(&self, index_: u32, keyval: u32, modifiers: ModifierType) { ... }
fn set_mode(&self, mode: InputMode) -> bool { ... }
fn warp(&self, screen: &Screen, x: i32, y: i32) { ... }
fn device_manager(&self) -> Option<DeviceManager> { ... }
fn input_mode(&self) -> InputMode { ... }
fn set_input_mode(&self, input_mode: InputMode) { ... }
fn input_source(&self) -> InputSource { ... }
fn num_touches(&self) -> u32 { ... }
fn set_seat<P: IsA<Seat>>(&self, seat: Option<&P>) { ... }
fn tool(&self) -> Option<DeviceTool> { ... }
fn type_(&self) -> DeviceType { ... }
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
fn connect_tool_changed<F: Fn(&Self, &DeviceTool) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_associated_device_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_axes_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_input_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_n_axes_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_seat_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_tool_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}