[−][src]Struct qt_core::EventPriority
This enum can be used to specify event priorities.
C++ enum: Qt::EventPriority
.
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]
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]
fn clone(&self) -> EventPriority
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EventPriority
[src]
impl Debug for EventPriority
[src]
impl Eq for EventPriority
[src]
impl From<EventPriority> for c_int
[src]
fn from(value: EventPriority) -> Self
[src]
impl From<i32> for EventPriority
[src]
impl PartialEq<EventPriority> for EventPriority
[src]
fn eq(&self, other: &EventPriority) -> bool
[src]
fn ne(&self, other: &EventPriority) -> bool
[src]
impl StructuralEq for EventPriority
[src]
impl StructuralPartialEq for EventPriority
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventPriority
impl Send for EventPriority
impl Sync for EventPriority
impl Unpin for EventPriority
impl UnwindSafe for EventPriority
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]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<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>,