#[repr(C)]
pub struct TouchDevice(_);
Expand description

C++ type: QTouchDevice

C++ documentation:

The QTouchDevice class describes the device from which touch events originate.

Each QTouchEvent contains a QTouchDevice pointer to allow accessing device-specific properties like type and capabilities. It is the responsibility of the platform or generic plug-ins to register the available touch devices via QWindowSystemInterface before generating any touch events. Applications do not need to instantiate this class, they should just access the global instances pointed to by QTouchEvent::device().

Implementations§

C++ method: QFlags<QTouchDevice::CapabilityFlag> QTouchDevice::capabilities() const

C++ documentation:

Returns the touch device capabilities.

See also setCapabilities().

C++ method: static QList<const QTouchDevice*> QTouchDevice::devices()

C++ documentation:

Returns a list of all registered devices.

Note: The returned list cannot be used to add new devices. Use QWindowSystemInterface::registerTouchDevice() instead.

C++ method: int QTouchDevice::maximumTouchPoints() const

C++ documentation:

Returns the maximum number of simultaneous touch points (fingers) that can be detected.

This function was introduced in Qt 5.2.

See also setMaximumTouchPoints().

C++ method: QString QTouchDevice::name() const

C++ documentation:

Returns the touch device name.

This string may often be empty. It is however useful for systems that have more than one touch input device because there it can be used to differentiate between the devices (i.e. to tell from which device a QTouchEvent originates from).

See also setName().

C++ method: [constructor] void QTouchDevice::QTouchDevice()

C++ documentation:

Creates a new touch device instance. By default the name is empty, the only capability is Position and type is TouchScreen.

C++ method: void QTouchDevice::setCapabilities(QFlags<QTouchDevice::CapabilityFlag> caps)

C++ documentation:

Sets the capabilities caps supported by the device and its driver.

See also capabilities().

C++ method: void QTouchDevice::setMaximumTouchPoints(int max)

C++ documentation:

Sets the maximum number of simultaneous touchpoints max supported by the device and its driver.

See also maximumTouchPoints().

C++ method: void QTouchDevice::setName(const QString& name)

C++ documentation:

Sets the name (a unique identifier) for the device. In most systems it is enough to leave this unset and keep the default empty name. This identifier becomes important when having multiple touch devices and a need to differentiate between them.

See also name().

C++ method: void QTouchDevice::setType(QTouchDevice::DeviceType devType)

C++ documentation:

Sets the device type devType.

See also type().

C++ method: QTouchDevice::DeviceType QTouchDevice::type() const

C++ documentation:

Returns the touch device type.

See also setType().

Trait Implementations§

Returns deleter function for this type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.