Trait gdk::prelude::DeviceExt

source ·
pub trait DeviceExt: IsA<Device> + Sealed + 'static {
Show 43 methods // Provided methods fn associated_device(&self) -> Option<Device> { ... } fn axes(&self) -> AxisFlags { ... } fn axis_use(&self, index_: u32) -> AxisUse { ... } fn device_type(&self) -> DeviceType { ... } fn display(&self) -> Display { ... } fn has_cursor(&self) -> bool { ... } fn key(&self, index_: u32) -> Option<(u32, ModifierType)> { ... } fn last_event_window(&self) -> Option<Window> { ... } fn mode(&self) -> InputMode { ... } fn n_axes(&self) -> i32 { ... } fn n_keys(&self) -> i32 { ... } fn name(&self) -> Option<GString> { ... } fn position(&self) -> (Screen, i32, i32) { ... } fn position_double(&self) -> (Screen, f64, f64) { ... } fn product_id(&self) -> Option<GString> { ... } fn seat(&self) -> Option<Seat> { ... } fn source(&self) -> InputSource { ... } fn vendor_id(&self) -> Option<GString> { ... } fn window_at_position(&self) -> (Option<Window>, i32, i32) { ... } fn window_at_position_double(&self) -> (Option<Window>, f64, f64) { ... } fn list_axes(&self) -> Vec<Atom> { ... } fn list_slave_devices(&self) -> Vec<Device> { ... } fn set_axis_use(&self, index_: u32, use_: AxisUse) { ... } fn set_key(&self, index_: u32, keyval: u32, modifiers: ModifierType) { ... } fn set_mode(&self, mode: InputMode) -> bool { ... } fn warp(&self, screen: &Screen, x: i32, y: i32) { ... } fn device_manager(&self) -> Option<DeviceManager> { ... } fn input_mode(&self) -> InputMode { ... } fn set_input_mode(&self, input_mode: InputMode) { ... } fn input_source(&self) -> InputSource { ... } fn num_touches(&self) -> u32 { ... } fn set_seat<P: IsA<Seat>>(&self, seat: Option<&P>) { ... } fn tool(&self) -> Option<DeviceTool> { ... } fn type_(&self) -> DeviceType { ... } 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_associated_device_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_axes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_input_mode_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_n_axes_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 { ... } fn connect_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn associated_device(&self) -> Option<Device>

source

fn axes(&self) -> AxisFlags

source

fn axis_use(&self, index_: u32) -> AxisUse

source

fn device_type(&self) -> DeviceType

source

fn display(&self) -> Display

source

fn has_cursor(&self) -> bool

source

fn key(&self, index_: u32) -> Option<(u32, ModifierType)>

source

fn last_event_window(&self) -> Option<Window>

source

fn mode(&self) -> InputMode

source

fn n_axes(&self) -> i32

source

fn n_keys(&self) -> i32

source

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

source

fn position(&self) -> (Screen, i32, i32)

source

fn position_double(&self) -> (Screen, f64, f64)

source

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

source

fn seat(&self) -> Option<Seat>

source

fn source(&self) -> InputSource

source

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

source

fn window_at_position(&self) -> (Option<Window>, i32, i32)

source

fn window_at_position_double(&self) -> (Option<Window>, f64, f64)

source

fn list_axes(&self) -> Vec<Atom>

source

fn list_slave_devices(&self) -> Vec<Device>

source

fn set_axis_use(&self, index_: u32, use_: AxisUse)

source

fn set_key(&self, index_: u32, keyval: u32, modifiers: ModifierType)

source

fn set_mode(&self, mode: InputMode) -> bool

source

fn warp(&self, screen: &Screen, x: i32, y: i32)

source

fn device_manager(&self) -> Option<DeviceManager>

source

fn input_mode(&self) -> InputMode

source

fn set_input_mode(&self, input_mode: InputMode)

source

fn input_source(&self) -> InputSource

source

fn num_touches(&self) -> u32

source

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

source

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

source

fn type_(&self) -> DeviceType

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_associated_device_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

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

source

fn connect_input_mode_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_seat_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

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

source

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

Implementors§

source§

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