pub trait DeviceExt: IsA<Device> + 'static {
Show 34 methods
// Provided methods
fn active_layout_index(&self) -> i32 { ... }
fn is_caps_locked(&self) -> bool { ... }
fn device_tool(&self) -> Option<DeviceTool> { ... }
fn direction(&self) -> Direction { ... }
fn display(&self) -> Display { ... }
fn has_cursor(&self) -> bool { ... }
fn layout_names(&self) -> Vec<GString> { ... }
fn modifier_state(&self) -> ModifierType { ... }
fn name(&self) -> GString { ... }
fn is_num_locked(&self) -> bool { ... }
fn num_touches(&self) -> u32 { ... }
fn product_id(&self) -> Option<GString> { ... }
fn is_scroll_locked(&self) -> bool { ... }
fn seat(&self) -> Seat { ... }
fn source(&self) -> InputSource { ... }
fn surface_at_position(&self) -> (Option<Surface>, f64, f64) { ... }
fn timestamp(&self) -> u32 { ... }
fn vendor_id(&self) -> Option<GString> { ... }
fn has_bidi_layouts(&self) -> bool { ... }
fn n_axes(&self) -> u32 { ... }
fn set_seat<P>(&self, seat: Option<&P>)
where P: IsA<Seat> { ... }
fn connect_changed<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_tool_changed<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, &DeviceTool) + 'static { ... }
fn connect_active_layout_index_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_caps_lock_state_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_direction_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_has_bidi_layouts_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_layout_names_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_modifier_state_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_n_axes_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_num_lock_state_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_scroll_lock_state_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_seat_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_tool_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
}
Provided Methods§
fn active_layout_index(&self) -> i32
Available on crate feature
v4_18
only.fn is_caps_locked(&self) -> bool
fn device_tool(&self) -> Option<DeviceTool>
fn direction(&self) -> Direction
fn display(&self) -> Display
fn has_cursor(&self) -> bool
fn layout_names(&self) -> Vec<GString>
Available on crate feature
v4_18
only.fn modifier_state(&self) -> ModifierType
fn name(&self) -> GString
fn is_num_locked(&self) -> bool
fn num_touches(&self) -> u32
fn product_id(&self) -> Option<GString>
fn is_scroll_locked(&self) -> bool
fn seat(&self) -> Seat
fn source(&self) -> InputSource
fn surface_at_position(&self) -> (Option<Surface>, f64, f64)
fn timestamp(&self) -> u32
Available on crate feature
v4_2
only.fn vendor_id(&self) -> Option<GString>
fn has_bidi_layouts(&self) -> bool
fn n_axes(&self) -> u32
fn set_seat<P>(&self, seat: Option<&P>)
fn connect_changed<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_tool_changed<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self, &DeviceTool) + 'static,
fn connect_active_layout_index_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
Available on crate feature
v4_18
only.fn connect_caps_lock_state_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_direction_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_has_bidi_layouts_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_layout_names_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
Available on crate feature
v4_18
only.fn connect_modifier_state_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_n_axes_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_num_lock_state_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_scroll_lock_state_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_seat_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_tool_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
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.