Trait gdk::DeviceExt [] [src]

pub trait DeviceExt {
    fn get_associated_device(&self) -> Option<Device>;
fn get_axis_use(&self, index_: u32) -> AxisUse;
fn get_device_type(&self) -> DeviceType;
fn get_display(&self) -> Display;
fn get_has_cursor(&self) -> bool;
fn get_key(&self, index_: u32) -> Option<(u32, ModifierType)>;
fn get_mode(&self) -> InputMode;
fn get_n_axes(&self) -> i32;
fn get_n_keys(&self) -> i32;
fn get_name(&self) -> Option<String>;
fn get_position(&self) -> (Screen, i32, i32);
fn get_source(&self) -> InputSource;
fn get_window_at_position(&self) -> (Option<Window>, i32, i32);
fn get_window_at_position_double(&self) -> (Option<Window>, f64, f64);
fn grab<'a, P: Into<Option<&'a Cursor>>>(
        &self,
        window: &Window,
        grab_ownership: GrabOwnership,
        owner_events: bool,
        event_mask: EventMask,
        cursor: P,
        time_: u32
    ) -> GrabStatus;
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 ungrab(&self, time_: u32);
fn warp(&self, screen: &Screen, x: i32, y: i32);
fn get_property_device_manager(&self) -> Option<DeviceManager>;
fn get_property_input_mode(&self) -> InputMode;
fn set_property_input_mode(&self, input_mode: InputMode);
fn get_property_input_source(&self) -> InputSource;
fn get_property_type(&self) -> DeviceType;
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64;
fn connect_property_associated_device_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> u64;
fn connect_property_device_manager_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> u64;
fn connect_property_display_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> u64;
fn connect_property_has_cursor_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> u64;
fn connect_property_input_mode_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> u64;
fn connect_property_input_source_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> u64;
fn connect_property_n_axes_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> u64;
fn connect_property_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> u64;
fn connect_property_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> u64; }

Required Methods

Implementors