Struct qt_core::MouseEventSource
source · 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 moresource§impl Debug for MouseEventSource
impl Debug for MouseEventSource
source§impl From<MouseEventSource> for c_int
impl From<MouseEventSource> for c_int
source§fn from(value: MouseEventSource) -> Self
fn from(value: MouseEventSource) -> Self
source§impl From<i32> for MouseEventSource
impl From<i32> for MouseEventSource
source§impl PartialEq for MouseEventSource
impl PartialEq for MouseEventSource
source§fn eq(&self, other: &MouseEventSource) -> bool
fn eq(&self, other: &MouseEventSource) -> bool
self
and other
values to be equal, and is used
by ==
.