iced_pancurses/renderer/row.rs
1use crate::{primitive::Primitive, PancursesRenderer};
2use iced_native::{row, Element, Layout, Point};
3
4impl row::Renderer for PancursesRenderer {
5 fn draw<Message>(
6 &mut self,
7 children: &[Element<'_, Message, Self>],
8 layout: Layout<'_>,
9 cursor_position: Point,
10 ) -> Self::Output {
11 Primitive::Group(
12 children
13 .iter()
14 .zip(layout.children())
15 .map(|(child, layout)| child.draw(self, layout, cursor_position))
16 .collect(),
17 )
18 }
19}