fn draw(&mut self, internal: &WidgetInternal<T>, ctx: &mut CTX) -> bool {
        self.decorator.before(internal, ctx);

        let count = self
            .widgets_i
            .iter_mut()
            .zip(self.widgets.iter_mut())
            // DRAW | VISIBLE
            .filter(|(w_internal, _)| w_internal.check(0b00001010))
            .fold(0, |_, (w_internal, widget)| {
                let draw = widget.draw(w_internal, ctx);
                if !draw {
                    w_internal.off(DRAW);
                }

                draw as usize
            });

        self.decorator.after(internal, ctx);

        count > 0
    }
/// Draw widgets from the list that have DRAW flag turned on
///
/// This function is lazy, if none widget is found, the DRAW flag
/// of the container turns off
Draw widgets from the list that have DRAW flag turned on
This function is lazy, if none widget is found, the DRAW flag
of the container turns off
Draw widgets from the list that have DRAW flag turned on This function is lazy if none widget is found the DRAW flag of the container turns off
fn draw(&mut self, internal: &WidgetInternal<T>, ctx: &mut CTX) -> bool {
        self.decorator.before(internal, ctx);
        let count = self
            .widgets_i
            .iter_mut()
            .zip(self.widgets.iter_mut())
            // DRAW | VISIBLE
            .filter(|(w_internal, _)| w_internal.check(0b00001010))
            .fold(0, |_, (w_internal, widget)| {
                let draw = widget.draw(w_internal, ctx);
                if !draw {
                    w_internal.off(DRAW);
                }
                draw as usize
            });
        self.decorator.after(internal, ctx);
        count > 0
    }
fn draw ( & mut self , internal : & WidgetInternal < T > , ctx : & mut CTX ) -> bool { self . decorator . before ( internal , ctx ) ; let count = self . widgets_i . iter_mut ( ) . zip ( self . widgets . iter_mut ( ) ) // DRAW | VISIBLE . filter ( | ( w_internal , _ ) | w_internal . check ( 0b00001010 ) ) . fold ( 0 , | _ , ( w_internal , widget ) | { let draw = widget . draw ( w_internal , ctx ) ; if ! draw { w_internal . off ( DRAW ) ; } draw as usize } ) ; self . decorator . after ( internal , ctx ) ; count > 0 }
Draw widgets from the list that have DRAW flag turned on
This function is lazy, if none widget is found, the DRAW flag
of the container turns off
Draw widgets from the list that have DRAW flag turned on This function is lazy if none widget is found the DRAW flag of the container turns off
&mut self
internal
&WidgetInternal<T>
ctx
&mut CTX
&mut self
internal
&WidgetInternal<T>
ctx
&mut CTX