[][src]Struct qt_gui::q_touch_device::DeviceType

#[repr(transparent)]
pub struct DeviceType(_);

This enum represents the type of device that generated a QTouchEvent.

C++ enum: QTouchDevice::DeviceType.

C++ documentation:

This enum represents the type of device that generated a QTouchEvent.

Methods

impl DeviceType[src]

pub fn to_int(&self) -> c_int[src]

impl DeviceType[src]

pub const TouchScreen: DeviceType[src]

In this type of device, the touch surface and display are integrated. This means the surface and display typically have the same size, such that there is a direct relationship between the touch points' physical positions and the coordinate reported by QTouchEvent::TouchPoint. As a result, Qt allows the user to interact directly with multiple QWidgets and QGraphicsItems at the same time. (C++ enum variant: TouchScreen = 0)

pub const TouchPad: DeviceType[src]

In this type of device, the touch surface is separate from the display. There is not a direct relationship between the physical touch location and the on-screen coordinates. Instead, they are calculated relative to the current mouse position, and the user must use the touch-pad to move this reference point. Unlike touch-screens, Qt allows users to only interact with a single QWidget or QGraphicsItem at a time. (C++ enum variant: TouchPad = 1)

Trait Implementations

impl Clone for DeviceType[src]

impl Copy for DeviceType[src]

impl Debug for DeviceType[src]

impl Eq for DeviceType[src]

impl From<DeviceType> for c_int[src]

impl From<i32> for DeviceType[src]

impl PartialEq<DeviceType> for DeviceType[src]

impl StructuralEq for DeviceType[src]

impl StructuralPartialEq for DeviceType[src]

Auto Trait Implementations

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<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.