#[repr(C)]
pub enum CapabilityFlag {
    Position,
    Area,
    Pressure,
    Velocity,
    RawPositions,
    NormalizedPosition,
    MouseEmulation,
}
Expand description

C++ type: QTouchDevice::CapabilityFlag

C++ documentation:

This enum is used with QTouchDevice::capabilities() to indicate what kind of information the touch device or its driver can provide.

The Capabilities type is a typedef for QFlags<CapabilityFlag>. It stores an OR combination of CapabilityFlag values.

Variants§

§

Position

Indicates that position information is available, meaning that the pos() family of functions in the touch points return valid points. (C++ enum variant: Position = 1)

§

Area

Indicates that touch area information is available, meaning that the rect() family of functions in the touch points return valid rectangles. (C++ enum variant: Area = 2)

§

Pressure

Indicates that pressure information is available, meaning that pressure() returns a valid value. (C++ enum variant: Pressure = 4)

§

Velocity

Indicates that velocity information is available, meaning that velocity() returns a valid vector. (C++ enum variant: Velocity = 8)

§

RawPositions

Indicates that the list returned by QTouchEvent::TouchPoint::rawScreenPositions() may contain one or more positions for each touch point. This is relevant when the touch input gets filtered or corrected on driver level. (C++ enum variant: RawPositions = 16)

§

NormalizedPosition

Indicates that the normalized position is available, meaning that normalizedPos() returns a valid value. (C++ enum variant: NormalizedPosition = 32)

§

MouseEmulation

Indicates that the device synthesizes mouse events. This enum value has been introduced in Qt 5.5. (C++ enum variant: MouseEmulation = 64)

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns integer value of this enum variant.
Returns name of the type for debug output.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.