[]Struct gdk::Device

pub struct Device(_, _);

Methods

impl Device[src]

pub fn get_associated_device(&self) -> Option<Device>[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_source(&self) -> InputSource[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_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_property_associated_device_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_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]

Trait Implementations

impl Eq for Device

impl Ord for Device

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Clone for Device

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for Device

impl Display for Device[src]

impl Hash for Device

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl StaticType for Device

Auto Trait Implementations

impl !Send for Device

impl !Sync for Device

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> From<T> for T[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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[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, *const GList> 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<T> Cast for T where
    T: ObjectType
[src]

fn upcast<T>(self) -> T where
    Self: IsA<T>,
    T: ObjectType
[src]

Upcasts an object to a superclass or interface T. Read more

fn upcast_ref<T>(&self) -> &T where
    Self: IsA<T>,
    T: ObjectType
[src]

Upcasts an object to a reference of its superclass or interface T. Read more

fn downcast<T>(self) -> Result<T, Self> where
    Self: CanDowncast<T>,
    T: ObjectType
[src]

Tries to downcast to a subclass or interface implementor T. Read more

fn downcast_ref<T>(&self) -> Option<&T> where
    Self: CanDowncast<T>,
    T: ObjectType
[src]

Tries to downcast to a reference of its subclass or interface implementor T. Read more

fn dynamic_cast<T>(self) -> Result<T, Self> where
    T: ObjectType
[src]

Tries to cast to an object of type T. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while downcast and upcast will do many checks at compile-time already. Read more

fn dynamic_cast_ref<T>(&self) -> Option<&T> where
    T: ObjectType
[src]

Tries to cast to reference to an object of type T. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while downcast and upcast will do many checks at compile-time already. Read more

unsafe fn unsafe_cast<T>(self) -> T where
    T: ObjectType
[src]

Casts to T unconditionally. Read more

unsafe fn unsafe_cast_ref<T>(&self) -> &T where
    T: ObjectType
[src]

Casts to &T unconditionally. Read more

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

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

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