pub fn push_event_direct<E: Event + Send>(&self, entity: Entity, event: E) {
        self.event_queue
            .lock()
            .expect("EventAdapter::push_event_direct: Cannot lock event queue")
            .register_event_with_strategy(event, EventStrategy::Direct, entity);

        self.redraw();
    }
/// Pushes an event that is directly sent to the given entity
/// (widget). It occurs only by the given entity and will not
/// bubble through the tree.
Pushes an event that is directly sent to the given entity
(widget). It occurs only by the given entity and will not
bubble through the tree.
Pushes an event that is directly sent to the given entity ( widget ) . It occurs only by the given entity and will not bubble through the tree .
pub fn push_event_direct<E: Event + Send>(&self, entity: Entity, event: E) {
        self.event_queue
            .lock()
            .expect("EventAdapter::push_event_direct: Cannot lock event queue")
            .register_event_with_strategy(event, EventStrategy::Direct, entity);
        self.redraw();
    }
pub fn push_event_direct < E : Event + Send > ( & self , entity : Entity , event : E ) { self . event_queue . lock ( ) . expect ( " " ) . register_event_with_strategy ( event , EventStrategy :: Direct , entity ) ; self . redraw ( ) ; }
Pushes an event that is directly sent to the given entity
(widget).
Pushes an event that is directly sent to the given entity ( widget ) .
&self
entity
Entity
event
E