implement Measure component

This commit is contained in:
🪞👃🪞 2024-10-31 21:53:49 +02:00
parent 4983523da6
commit 75c9a4ce49
3 changed files with 53 additions and 53 deletions

View file

@ -66,10 +66,8 @@ pub struct Arrangement<E: Engine> {
pub focused: bool,
/// Background color of arrangement
pub color: Color,
/// Width of arrangement area at last render
pub width: AtomicUsize,
/// Height of arrangement area at last render
pub height: AtomicUsize,
/// Width and height of arrangement area at last render
pub size: Measure<E>,
}
/// Represents a track in the arrangement
pub struct ArrangementTrack<E: Engine> {
@ -238,8 +236,7 @@ impl<E: Engine> Arrangement<E> {
tracks: vec![],
focused: false,
color: Color::Rgb(28, 35, 25),
width: 0.into(),
height: 0.into(),
size: Measure::new(),
}
}
pub fn activate (&mut self) {