pub struct MouseEventSource(/* private fields */);
Expand description
This enum describes the source of a mouse event and can be useful to determine if the event is an artificial mouse event originating from another device such as a touchscreen.
C++ enum: Qt::MouseEventSource
.
This enum describes the source of a mouse event and can be useful to determine if the event is an artificial mouse event originating from another device such as a touchscreen.
This enum was introduced or modified in Qt 5.3.
Implementations§
Source§impl MouseEventSource
impl MouseEventSource
Sourcepub const MouseEventNotSynthesized: MouseEventSource
pub const MouseEventNotSynthesized: MouseEventSource
The most common value. On platforms where such information is available this value indicates that the event was generated in response to a genuine mouse event in the system. (C++ enum variant: MouseEventNotSynthesized = 0
)
Sourcepub const MouseEventSynthesizedBySystem: MouseEventSource
pub const MouseEventSynthesizedBySystem: MouseEventSource
Indicates that the mouse event was synthesized from a touch event by the platform. (C++ enum variant: MouseEventSynthesizedBySystem = 1
)
Sourcepub const MouseEventSynthesizedByQt: MouseEventSource
pub const MouseEventSynthesizedByQt: MouseEventSource
Indicates that the mouse event was synthesized from an unhandled touch event by Qt. (C++ enum variant: MouseEventSynthesizedByQt = 2
)
Sourcepub const MouseEventSynthesizedByApplication: MouseEventSource
pub const MouseEventSynthesizedByApplication: MouseEventSource
Indicates that the mouse event was synthesized by the application. This allows distinguishing application-generated mouse events from the ones that are coming from the system or are synthesized by Qt. This value was introduced in Qt 5.6 (C++ enum variant: MouseEventSynthesizedByApplication = 3
)
Trait Implementations§
Source§impl Clone for MouseEventSource
impl Clone for MouseEventSource
Source§fn clone(&self) -> MouseEventSource
fn clone(&self) -> MouseEventSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more