[][src]Struct qt_core::EventPriority

#[repr(transparent)]pub struct EventPriority(_);

This enum can be used to specify event priorities.

C++ enum: Qt::EventPriority.

C++ documentation:

This enum can be used to specify event priorities.

Note that these values are provided purely for convenience, since event priorities can be any value between INT_MAX and INT_MIN, inclusive. For example, you can define custom priorities as being relative to each other:

enum CustomEventPriority { // An important event ImportantEventPriority = Qt::HighEventPriority,

// A more important event MoreImportantEventPriority = ImportantEventPriority + 1,

// A critical event CriticalEventPriority = 100 * MoreImportantEventPriority,

// Not that important StatusEventPriority = Qt::LowEventPriority,

// These are less important than Status events IdleProcessingDoneEventPriority = StatusEventPriority - 1 };

See also QCoreApplication::postEvent().

Methods

impl EventPriority[src]

pub fn to_int(&self) -> c_int[src]

impl EventPriority[src]

pub const HighEventPriority: EventPriority[src]

Events with this priority are sent before events with NormalEventPriority or LowEventPriority. (C++ enum variant: HighEventPriority = 1)

pub const NormalEventPriority: EventPriority[src]

Events with this priority are sent after events with HighEventPriority, but before events with LowEventPriority. (C++ enum variant: NormalEventPriority = 0)

pub const LowEventPriority: EventPriority[src]

Events with this priority are sent after events with HighEventPriority or NormalEventPriority. (C++ enum variant: LowEventPriority = -1)

Trait Implementations

impl Clone for EventPriority[src]

impl Copy for EventPriority[src]

impl Debug for EventPriority[src]

impl Eq for EventPriority[src]

impl From<EventPriority> for c_int[src]

impl From<i32> for EventPriority[src]

impl PartialEq<EventPriority> for EventPriority[src]

impl StructuralEq for EventPriority[src]

impl StructuralPartialEq for EventPriority[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.