(
&self,
event: &Event,
path: &mut IdPath,
cx: &mut Context,
actions: &mut Vec<Box<dyn Any>>,
)
| 47 | |
| 48 | impl<VT: ViewTuple + 'static, D: StackDirection + 'static> DynView for Stack<VT, D> { |
| 49 | fn process( |
| 50 | &self, |
| 51 | event: &Event, |
| 52 | path: &mut IdPath, |
| 53 | cx: &mut Context, |
| 54 | actions: &mut Vec<Box<dyn Any>>, |
| 55 | ) { |
| 56 | let mut c = self.children.len() as i64 - 1; |
| 57 | self.children.foreach_view_rev(&mut |child| { |
| 58 | path.push(c as u64); |
| 59 | let offset = cx.get_layout(path).offset; |
| 60 | (*child).process(&event.offset(-offset), path, cx, actions); |
| 61 | path.pop(); |
| 62 | c -= 1; |
| 63 | }) |
| 64 | } |
| 65 | |
| 66 | fn draw(&self, path: &mut IdPath, args: &mut DrawArgs) { |
| 67 | let mut c = 0; |
nothing calls this directly
no test coverage detected