pub trait DeviceExt: 'static {
Show 30 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;
}
Required Methods
source
fn is_caps_locked(&self) -> bool
source
fn device_tool(&self) -> Option<DeviceTool>
source
fn has_cursor(&self) -> bool
source
fn modifier_state(&self) -> ModifierType
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 source(&self) -> InputSource
source
fn has_bidi_layouts(&self) -> bool
source
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
sourcefn connect_tool_changed<F: Fn(&Self, &DeviceTool) + 'static>(
fn connect_tool_changed<F: Fn(&Self, &DeviceTool) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_caps_lock_state_notify<F: Fn(&Self) + 'static>(
fn connect_caps_lock_state_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_direction_notify<F: Fn(&Self) + 'static>(
fn connect_direction_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_has_bidi_layouts_notify<F: Fn(&Self) + 'static>(
fn connect_has_bidi_layouts_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_modifier_state_notify<F: Fn(&Self) + 'static>(
fn connect_modifier_state_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
source
fn connect_n_axes_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
sourcefn connect_num_lock_state_notify<F: Fn(&Self) + 'static>(
fn connect_num_lock_state_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_scroll_lock_state_notify<F: Fn(&Self) + 'static>(
fn connect_scroll_lock_state_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
source
fn connect_seat_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
source