diff --git a/src/view.rs b/src/view.rs index 066a519a..5f7453cf 100644 --- a/src/view.rs +++ b/src/view.rs @@ -111,14 +111,22 @@ bitflags! { pub trait View { fn id(&self) -> Id; - /// This method walk over children and must be implemented if the view has any children. + /// This method walks over children and must be implemented if the view has any children. /// It should return children back to front and should stop if `_for_each` returns `true`. fn for_each_child<'a>(&'a self, _for_each: &mut dyn FnMut(&'a dyn View) -> bool) {} - /// This method walk over children and must be implemented if the view has any children. + /// This method walks over children and must be implemented if the view has any children. /// It should return children back to front and should stop if `_for_each` returns `true`. fn for_each_child_mut<'a>(&'a mut self, _for_each: &mut dyn FnMut(&'a mut dyn View) -> bool) {} + /// This method walks over children and must be implemented if the view has any children. + /// It should return children front to back and should stop if `_for_each` returns `true`. + fn for_each_child_rev_mut<'a>( + &'a mut self, + _for_each: &mut dyn FnMut(&'a mut dyn View) -> bool, + ) { + } + fn view_style(&self) -> Option