[−][src]Struct qt_core::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.
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.
Methods
impl MouseEventSource
[src]
impl MouseEventSource
[src]
pub const MouseEventNotSynthesized: MouseEventSource
[src]
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
)
pub const MouseEventSynthesizedBySystem: MouseEventSource
[src]
Indicates that the mouse event was synthesized from a touch event by the platform. (C++ enum variant: MouseEventSynthesizedBySystem = 1
)
pub const MouseEventSynthesizedByQt: MouseEventSource
[src]
Indicates that the mouse event was synthesized from an unhandled touch event by Qt. (C++ enum variant: MouseEventSynthesizedByQt = 2
)
pub const MouseEventSynthesizedByApplication: MouseEventSource
[src]
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
impl Clone for MouseEventSource
[src]
fn clone(&self) -> MouseEventSource
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MouseEventSource
[src]
impl Debug for MouseEventSource
[src]
impl Eq for MouseEventSource
[src]
impl From<MouseEventSource> for c_int
[src]
fn from(value: MouseEventSource) -> Self
[src]
impl From<i32> for MouseEventSource
[src]
impl PartialEq<MouseEventSource> for MouseEventSource
[src]
fn eq(&self, other: &MouseEventSource) -> bool
[src]
fn ne(&self, other: &MouseEventSource) -> bool
[src]
impl StructuralEq for MouseEventSource
[src]
impl StructuralPartialEq for MouseEventSource
[src]
Auto Trait Implementations
impl RefUnwindSafe for MouseEventSource
impl Send for MouseEventSource
impl Sync for MouseEventSource
impl Unpin for MouseEventSource
impl UnwindSafe for MouseEventSource
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,