Struct qt_gui::q_touch_device::DeviceType
source · pub struct DeviceType(/* private fields */);
Expand description
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.
Implementations§
source§impl DeviceType
impl DeviceType
sourcepub const TouchScreen: DeviceType = _
pub const TouchScreen: DeviceType = _
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
)
sourcepub const TouchPad: DeviceType = _
pub const TouchPad: DeviceType = _
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§
source§impl Clone for DeviceType
impl Clone for DeviceType
source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceType
impl Debug for DeviceType
source§impl From<DeviceType> for c_int
impl From<DeviceType> for c_int
source§fn from(value: DeviceType) -> Self
fn from(value: DeviceType) -> Self
source§impl From<i32> for DeviceType
impl From<i32> for DeviceType
source§impl PartialEq for DeviceType
impl PartialEq for DeviceType
source§fn eq(&self, other: &DeviceType) -> bool
fn eq(&self, other: &DeviceType) -> bool
self
and other
values to be equal, and is used
by ==
.