Trait DeviceExt

Source
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§

Source

fn active_layout_index(&self) -> i32

Available on crate feature v4_18 only.
Source

fn is_caps_locked(&self) -> bool

Source

fn device_tool(&self) -> Option<DeviceTool>

Source

fn direction(&self) -> Direction

Source

fn display(&self) -> Display

Source

fn has_cursor(&self) -> bool

Source

fn layout_names(&self) -> Vec<GString>

Available on crate feature v4_18 only.
Source

fn modifier_state(&self) -> ModifierType

Source

fn name(&self) -> GString

Source

fn is_num_locked(&self) -> bool

Source

fn num_touches(&self) -> u32

Source

fn product_id(&self) -> Option<GString>

Source

fn is_scroll_locked(&self) -> bool

Source

fn seat(&self) -> Seat

Source

fn source(&self) -> InputSource

Source

fn surface_at_position(&self) -> (Option<Surface>, f64, f64)

Source

fn timestamp(&self) -> u32

Available on crate feature v4_2 only.
Source

fn vendor_id(&self) -> Option<GString>

Source

fn has_bidi_layouts(&self) -> bool

Source

fn n_axes(&self) -> u32

Source

fn set_seat<P>(&self, seat: Option<&P>)
where P: IsA<Seat>,

Source

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

Source

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

Source

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

Available on crate feature v4_18 only.
Source

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

Source

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

Source

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

Source

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

Available on crate feature v4_18 only.
Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn connect_tool_notify<F>(&self, f: F) -> SignalHandlerId
where 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.

Implementors§

Source§

impl<O> DeviceExt for O
where O: IsA<Device>,