iced-pancurses 0.1.2

Toy renderer for iced based on pancurses
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::primitive::Primitive;
use crate::PancursesRenderer;
use iced_native::widget::button;
use iced_native::{Background, Point, Rectangle};

impl button::Renderer for PancursesRenderer {
    fn draw(
        &mut self,
        bounds: Rectangle,
        _cursor_position: Point,
        _is_pressed: bool,
        _background: Option<Background>,
        _border_radius: u16,
        content: Self::Output,
    ) -> Self::Output {
        Primitive::Group(vec![Primitive::BoxDisplay(bounds), content])
    }
}