mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
freestanding input_ports
This commit is contained in:
parent
b9d1a82314
commit
7633813ab2
2 changed files with 91 additions and 44 deletions
|
|
@ -34,6 +34,12 @@ impl Tek {
|
|||
data
|
||||
})
|
||||
}
|
||||
pub(crate) fn tracks_sizes_scrolled <'a> (&'a self) -> impl TracksSizes<'a> {
|
||||
let width = self.w_tracks_area();
|
||||
self.tracks_sizes().map_while(move|(t, track, x1, x2)|{
|
||||
(width > x2 as u16).then_some((t, track, x1, x2))
|
||||
})
|
||||
}
|
||||
pub(crate) fn scenes_sizes (&self, editing: bool, height: usize, larger: usize) -> impl ScenesSizes<'_> {
|
||||
let (selected_track, selected_scene) = match self.selected() {
|
||||
Selection::Track(t) => (Some(*t), None),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue