//! Screens and overlays. Each piece draws from a `View` and pushes `Act`s for the app to apply. pub mod chrome; pub mod controls; pub mod glyphs; pub mod menu; pub mod menus; pub mod settings; pub mod sheets; use crate::app::Act; use crate::config::Settings; use crate::mpv::State; use crate::theme::Theme; pub struct View<'a> { pub t: &'a Theme, pub s: &'a State, pub cfg: &'a Settings, pub acts: &'a mut Vec, pub now: f64, /// How visible the controls are, 0..1. pub vis: f32, } impl View<'_> { pub fn act(&mut self, a: Act) { self.acts.push(a); } }