pub trait ViewGroup: View {
// Required methods
fn len(&self) -> usize;
fn at(&self, idx: usize) -> &dyn View;
fn at_mut(&mut self, idx: usize) -> &mut dyn View;
// Provided methods
fn bounds_of(&self, idx: usize) -> Rectangle { ... }
fn translate_child(&mut self, idx: usize, by: Point) { ... }
}
Expand description
A set of operations required to implement View
containers.
Required Methods§
Provided Methods§
Sourcefn translate_child(&mut self, idx: usize, by: Point)
fn translate_child(&mut self, idx: usize, by: Point)
Translates the given View.