Trait gdk::prelude::DeviceExt [] [src]

pub trait DeviceExt {
    fn get_associated_device(&self) -> Option<Device>;
    fn get_axes(&self) -> AxisFlags;
    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_last_event_window(&self) -> Option<Window>;
    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_position_double(&self) -> (Screen, f64, f64);
    fn get_product_id(&self) -> Option<String>;
    fn get_seat(&self) -> Option<Seat>;
    fn get_source(&self) -> InputSource;
    fn get_vendor_id(&self) -> Option<String>;
    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_num_touches(&self) -> u32; fn set_property_seat(&self, seat: Option<&Seat>); fn get_property_tool(&self) -> Option<DeviceTool>; fn get_property_type(&self) -> DeviceType; fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_tool_changed<F: Fn(&Self, &DeviceTool) + 'static>(
        &self,
        f: F
    ) -> u64; }

Required Methods

Implementors