Struct qt_core::EventPriority
source · pub struct EventPriority(/* private fields */);
Expand description
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().
Implementations§
source§impl EventPriority
impl EventPriority
sourcepub const HighEventPriority: EventPriority = _
pub const HighEventPriority: EventPriority = _
Events with this priority are sent before events with NormalEventPriority or LowEventPriority. (C++ enum variant: HighEventPriority = 1
)
sourcepub const NormalEventPriority: EventPriority = _
pub const NormalEventPriority: EventPriority = _
Events with this priority are sent after events with HighEventPriority, but before events with LowEventPriority. (C++ enum variant: NormalEventPriority = 0
)
sourcepub const LowEventPriority: EventPriority = _
pub const LowEventPriority: EventPriority = _
Events with this priority are sent after events with HighEventPriority or NormalEventPriority. (C++ enum variant: LowEventPriority = -1
)
Trait Implementations§
source§impl Clone for EventPriority
impl Clone for EventPriority
source§fn clone(&self) -> EventPriority
fn clone(&self) -> EventPriority
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventPriority
impl Debug for EventPriority
source§impl From<EventPriority> for c_int
impl From<EventPriority> for c_int
source§fn from(value: EventPriority) -> Self
fn from(value: EventPriority) -> Self
source§impl From<i32> for EventPriority
impl From<i32> for EventPriority
source§impl PartialEq for EventPriority
impl PartialEq for EventPriority
source§fn eq(&self, other: &EventPriority) -> bool
fn eq(&self, other: &EventPriority) -> bool
self
and other
values to be equal, and is used
by ==
.