[−][src]Struct qt_gui::q_touch_device::DeviceType
This enum represents the type of device that generated a QTouchEvent.
C++ enum: QTouchDevice::DeviceType
.
This enum represents the type of device that generated a QTouchEvent.
Methods
impl DeviceType
[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]
fn clone(&self) -> DeviceType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DeviceType
[src]
impl Debug for DeviceType
[src]
impl Eq for DeviceType
[src]
impl From<DeviceType> for c_int
[src]
fn from(value: DeviceType) -> Self
[src]
impl From<i32> for DeviceType
[src]
impl PartialEq<DeviceType> for DeviceType
[src]
fn eq(&self, other: &DeviceType) -> bool
[src]
fn ne(&self, other: &DeviceType) -> bool
[src]
impl StructuralEq for DeviceType
[src]
impl StructuralPartialEq for DeviceType
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,