[][src]Struct qt_core::MouseEventSource

#[repr(transparent)]pub struct 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.

C++ documentation:

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.

See also Qt::AA_SynthesizeMouseForUnhandledTouchEvents.

Methods

impl MouseEventSource[src]

pub fn to_int(&self) -> c_int[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]

impl Copy for MouseEventSource[src]

impl Debug for MouseEventSource[src]

impl Eq for MouseEventSource[src]

impl From<MouseEventSource> for c_int[src]

impl From<i32> for MouseEventSource[src]

impl PartialEq<MouseEventSource> for MouseEventSource[src]

impl StructuralEq for MouseEventSource[src]

impl StructuralPartialEq for MouseEventSource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.