rename Widget to Render and CustomWidget to Widget

This commit is contained in:
🪞👃🪞 2024-12-04 21:24:38 +01:00
parent f018988567
commit bf3c7630a4
20 changed files with 144 additions and 144 deletions

View file

@ -8,7 +8,7 @@ fn main () -> Usually<()> {
pub struct Demo<E: Engine> {
index: usize,
items: Vec<Box<dyn Widget<Engine = E>>>
items: Vec<Box<dyn Render<Engine = E>>>
}
impl Demo<Tui> {
@ -35,7 +35,7 @@ impl Demo<Tui> {
impl Content for Demo<Tui> {
type Engine = Tui;
fn content (&self) -> impl Widget<Engine = Tui> {
fn content (&self) -> impl Render<Engine = Tui> {
let border_style = Style::default().fg(Color::Rgb(0,0,0));
Align::Center(Layers::new(move|add|{