pub trait DeviceExt: 'static {
Show 30 methods
// Required methods
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 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: IsA<Seat>>(&self, seat: Option<&P>);
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_caps_lock_state_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_direction_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_has_bidi_layouts_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_modifier_state_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_n_axes_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_num_lock_state_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_scroll_lock_state_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;
}
Available on crate feature v4_2
only.