Trait gdk4::prelude::DeviceExt

source ·
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;
}

Required Methods§

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 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: IsA<Seat>>(&self, seat: Option<&P>)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

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

Implementors§

source§

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