/// Update widgets from the list that have UPDATE flag turned on
///
/// This function is lazy, if none widget is found, the UPDATE flag
/// of the container turns off
Update widgets from the list that have UPDATE flag turned on
This function is lazy, if none widget is found, the UPDATE flag
of the container turns off
Update widgets from the list that have UPDATE flag turned on This function is lazy if none widget is found the UPDATE flag of the container turns off
fn update(&mut self, internal: &mut WidgetInternal<T>) {
        let count = self
            .widgets_i
            .iter_mut()
            .zip(self.widgets.iter_mut())
            .filter(|(w_internal, _)| w_internal.check(UPDATE))
            .fold(0, |_, (w_internal, widget)| {
                let backup = w_internal.flags;
                // DRAW | LAYOUT | PREV_LAYOUT
                widget.update(w_internal);
                internal.on(w_internal.drain(0b11_00000010, PREV_LAYOUT));
                w_internal.replace(HANDLERS, backup);
                w_internal.check(UPDATE) as usize
            });
        self.focus_check(internal);
        if internal.check(PREV_LAYOUT) {
            internal.off_on(PREV_LAYOUT, PARTIAL_TURN);
        }
        internal.turn(UPDATE, count > 0);
    }
fn update ( & mut self , internal : & mut WidgetInternal < T > ) { let count = self . widgets_i . iter_mut ( ) . zip ( self . widgets . iter_mut ( ) ) . filter ( | ( w_internal , _ ) | w_internal . check ( UPDATE ) ) . fold ( 0 , | _ , ( w_internal , widget ) | { let backup = w_internal . flags ; // DRAW | LAYOUT | PREV_LAYOUT widget . update ( w_internal ) ; internal . on ( w_internal . drain ( 0b11_00000010 , PREV_LAYOUT ) ) ; w_internal . replace ( HANDLERS , backup ) ; w_internal . check ( UPDATE ) as usize } ) ; self . focus_check ( internal ) ; if internal . check ( PREV_LAYOUT ) { internal . off_on ( PREV_LAYOUT , PARTIAL_TURN ) ; } internal . turn ( UPDATE , count > 0 ) ; }
Update widgets from the list that have UPDATE flag turned on
This function is lazy, if none widget is found, the UPDATE flag
of the container turns off
Update widgets from the list that have UPDATE flag turned on This function is lazy if none widget is found the UPDATE flag of the container turns off
&mut self
internal
&mut WidgetInternal<T>