[−][src]Struct orbtk_api::event::EventQueue
The EventQueue
is used to register and read new events.
Implementations
impl EventQueue
[src]
pub fn new() -> Self
[src]
Creates a new event queue.
pub fn append(&mut self, other: &mut Vec<EventBox>)
[src]
Appends a new event box.
pub fn register_event_with_strategy<E: Event>(
&mut self,
event: E,
strategy: EventStrategy,
source: Entity
)
[src]
&mut self,
event: E,
strategy: EventStrategy,
source: Entity
)
Registers an event with a given event strategy and a source (Entity of a widget) where the event should start.
pub fn register_event<E: Event>(&mut self, event: E, source: Entity)
[src]
pub fn dequeue(&mut self) -> Option<EventBox>
[src]
Dequeue an event.
pub fn len(&self) -> usize
[src]
Returns the number of events in the EventQueue
.
pub fn is_empty(&self) -> bool
[src]
If the EventQueue
has more then zero events it will return true
otherwise false
.
Trait Implementations
impl Debug for EventQueue
[src]
impl Default for EventQueue
[src]
fn default() -> EventQueue
[src]
impl<'a> IntoIterator for &'a mut EventQueue
[src]
Auto Trait Implementations
impl !RefUnwindSafe for EventQueue
impl !Send for EventQueue
impl !Sync for EventQueue
impl Unpin for EventQueue
impl !UnwindSafe for EventQueue
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<E> Component for E where
E: Any,
[src]
E: Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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>,