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

@ -95,7 +95,7 @@ pub struct TrackView<'a, E: Engine> {
pub entered: bool,
}
impl<'a> Widget for TrackView<'a, Tui> {
impl<'a> Render for TrackView<'a, Tui> {
type Engine = Tui;
fn min_size (&self, area: [u16;2]) -> Perhaps<[u16;2]> {
todo!()
@ -132,7 +132,7 @@ impl<'a> Widget for TrackView<'a, Tui> {
impl Content for Mixer<Tui> {
type Engine = Tui;
fn content (&self) -> impl Widget<Engine = Tui> {
fn content (&self) -> impl Render<Engine = Tui> {
Stack::right(|add| {
for channel in self.tracks.iter() {
add(channel)?;
@ -144,7 +144,7 @@ impl Content for Mixer<Tui> {
impl Content for Track<Tui> {
type Engine = Tui;
fn content (&self) -> impl Widget<Engine = Tui> {
fn content (&self) -> impl Render<Engine = Tui> {
TrackView {
chain: Some(&self),
direction: tek_core::Direction::Right,