mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 13:16:44 +01:00
implement Measure component
This commit is contained in:
parent
4983523da6
commit
75c9a4ce49
3 changed files with 53 additions and 53 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue