iced_pancurses/renderer/
button.rs

1use crate::primitive::Primitive;
2use crate::PancursesRenderer;
3use iced_native::widget::button;
4use iced_native::{Background, Point, Rectangle};
5
6impl button::Renderer for PancursesRenderer {
7    fn draw(
8        &mut self,
9        bounds: Rectangle,
10        _cursor_position: Point,
11        _is_pressed: bool,
12        _background: Option<Background>,
13        _border_radius: u16,
14        content: Self::Output,
15    ) -> Self::Output {
16        Primitive::Group(vec![Primitive::BoxDisplay(bounds), content])
17    }
18}