[]Struct gdk::Device

pub struct Device(_, _);

Methods

impl Device[src]

pub fn get_associated_device(&self) -> Option<Device>[src]

pub fn get_axes(&self) -> AxisFlags[src]

pub fn get_axis_use(&self, index_: u32) -> AxisUse[src]

pub fn get_device_type(&self) -> DeviceType[src]

pub fn get_display(&self) -> Display[src]

pub fn get_has_cursor(&self) -> bool[src]

pub fn get_key(&self, index_: u32) -> Option<(u32, ModifierType)>[src]

pub fn get_last_event_window(&self) -> Option<Window>[src]

pub fn get_mode(&self) -> InputMode[src]

pub fn get_n_axes(&self) -> i32[src]

pub fn get_n_keys(&self) -> i32[src]

pub fn get_name(&self) -> Option<GString>[src]

pub fn get_position(&self) -> (Screen, i32, i32)[src]

pub fn get_position_double(&self) -> (Screen, f64, f64)[src]

pub fn get_product_id(&self) -> Option<GString>[src]

pub fn get_seat(&self) -> Option<Seat>[src]

pub fn get_source(&self) -> InputSource[src]

pub fn get_vendor_id(&self) -> Option<GString>[src]

pub fn get_window_at_position(&self) -> (Option<Window>, i32, i32)[src]

pub fn get_window_at_position_double(&self) -> (Option<Window>, f64, f64)[src]

pub fn grab<P: IsA<Window>>(
    &self,
    window: &P,
    grab_ownership: GrabOwnership,
    owner_events: bool,
    event_mask: EventMask,
    cursor: Option<&Cursor>,
    time_: u32
) -> GrabStatus
[src]

pub fn list_axes(&self) -> Vec<Atom>[src]

pub fn list_slave_devices(&self) -> Vec<Device>[src]

pub fn set_axis_use(&self, index_: u32, use_: AxisUse)[src]

pub fn set_key(&self, index_: u32, keyval: u32, modifiers: ModifierType)[src]

pub fn set_mode(&self, mode: InputMode) -> bool[src]

pub fn ungrab(&self, time_: u32)[src]

pub fn warp(&self, screen: &Screen, x: i32, y: i32)[src]

pub fn get_property_device_manager(&self) -> Option<DeviceManager>[src]

pub fn get_property_input_mode(&self) -> InputMode[src]

pub fn set_property_input_mode(&self, input_mode: InputMode)[src]

pub fn get_property_input_source(&self) -> InputSource[src]

pub fn get_property_num_touches(&self) -> u32[src]

pub fn set_property_seat(&self, seat: Option<&Seat>)[src]

pub fn get_property_tool(&self) -> Option<DeviceTool>[src]

pub fn get_property_type(&self) -> DeviceType[src]

pub fn grab_info_libgtk_only(
    display: &Display,
    device: &Device
) -> Option<(Window, bool)>
[src]

pub fn connect_changed<F: Fn(&Device) + 'static>(&self, f: F) -> SignalHandlerId[src]

pub fn connect_tool_changed<F: Fn(&Device, &DeviceTool) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_associated_device_notify<F: Fn(&Device) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_axes_notify<F: Fn(&Device) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_input_mode_notify<F: Fn(&Device) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_n_axes_notify<F: Fn(&Device) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_seat_notify<F: Fn(&Device) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_tool_notify<F: Fn(&Device) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_type_notify<F: Fn(&Device) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

impl Device[src]

pub fn get_axis(&self, axes: &mut [f64], use_: AxisUse, value: &mut f64) -> bool[src]

pub fn get_history<P: IsA<Window>>(
    &self,
    window: &P,
    start: u32,
    stop: u32
) -> Vec<TimeCoord>
[src]

Trait Implementations

impl Clone for Device

impl Debug for Device

impl Display for Device[src]

impl Eq for Device

impl Hash for Device

impl IsA<Device> for DevicePad

impl Ord for Device

impl<T: ObjectType> PartialEq<T> for Device

impl<T: ObjectType> PartialOrd<T> for Device

impl StaticType for Device

Auto Trait Implementations

impl RefUnwindSafe for Device

impl !Send for Device

impl !Sync for Device

impl Unpin for Device

impl UnwindSafe for Device

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.