mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
rename Widget to Render and CustomWidget to Widget
This commit is contained in:
parent
f018988567
commit
bf3c7630a4
20 changed files with 144 additions and 144 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue