fn propogate_event(&mut self, event: &crate::event::ApplicationEvent, message_queue: &mut crate::MessageQueue<Msg>) -> bool {
        use crate::ViewElement::*;

        let mut redraw = false;

        let state = self.state();
        for child in self.children() {
            match child {
                View(view) => {
                    view.propogate_event(event, message_queue);
                }

                Widget(widget) => {
                    let response = widget.handle_event(event, state.clone().borrow_mut(), message_queue);

                    match response {
                        crate::EventResponse::Consume => break,
                        crate::EventResponse::Redraw => redraw = true,
                        crate::EventResponse::None => {}
                    }
                }
            }
        }

        redraw
    }
// Returns `true` if redraw was requested
Returns `true` if redraw was requested
Returns ` true ` if redraw was requested
fn propogate_event(&mut self, event: &crate::event::ApplicationEvent, message_queue: &mut crate::MessageQueue<Msg>) -> bool {
        use crate::ViewElement::*;
        let mut redraw = false;
        let state = self.state();
        for child in self.children() {
            match child {
                View(view) => {
                    view.propogate_event(event, message_queue);
                }
                Widget(widget) => {
                    let response = widget.handle_event(event, state.clone().borrow_mut(), message_queue);
                    match response {
                        crate::EventResponse::Consume => break,
                        crate::EventResponse::Redraw => redraw = true,
                        crate::EventResponse::None => {}
                    }
                }
            }
        }
        redraw
    }
fn propogate_event ( & mut self , event : & crate :: event :: ApplicationEvent , message_queue : & mut crate :: MessageQueue < Msg > ) -> bool { use crate :: ViewElement :: * ; let mut redraw = false ; let state = self . state ( ) ; for child in self . children ( ) { match child { View ( view ) => { view . propogate_event ( event , message_queue ) ; } Widget ( widget ) => { let response = widget . handle_event ( event , state . clone ( ) . borrow_mut ( ) , message_queue ) ; match response { crate :: EventResponse :: Consume => break , crate :: EventResponse :: Redraw => redraw = true , crate :: EventResponse :: None => { } } } } } redraw }
Returns `true` if redraw was requested
Returns ` true ` if redraw was requested
&mut self
event
&crate::event::ApplicationEvent
message_queue
&mut crate::MessageQueue<Msg>
&mut self
event
&crate::event::ApplicationEvent
message_queue
&mut crate::MessageQueue<Msg>