pub trait Screen<E>: Any {
Show 37 methods
// Required method
fn draw(&mut self, frame: &mut Frame<'_>, area: Rect, palette: &Palette);
// Provided methods
fn moment(&mut self, _now: Instant) { ... }
fn phase(&self) -> Phase<'_> { ... }
fn load(&mut self) -> Option<Job<E>> { ... }
fn loaded(&mut self, _event: E, _cx: &mut Cx<'_, E>) { ... }
fn sources(&self) -> &[&str] { ... }
fn cancel(&mut self) { ... }
fn start(&mut self, _cx: &mut Cx<'_, E>) { ... }
fn entered(&mut self, _cx: &mut Cx<'_, E>) { ... }
fn key(&mut self, _key: KeyEvent, _cx: &mut Cx<'_, E>) { ... }
fn paste(&mut self, _text: &str, _cx: &mut Cx<'_, E>) { ... }
fn mouse(&mut self, _mouse: MouseEvent, _area: Rect, _cx: &mut Cx<'_, E>) { ... }
fn event(&mut self, _event: E, _cx: &mut Cx<'_, E>) { ... }
fn answer(&mut self, _yes: bool, _cx: &mut Cx<'_, E>) { ... }
fn picked(&mut self, _choice: Option<usize>, _cx: &mut Cx<'_, E>) { ... }
fn heard(&mut self, _id: u64, _heard: Heard, _cx: &mut Cx<'_, E>) { ... }
fn layer(&mut self, _id: u64, _event: Layered, _cx: &mut Cx<'_, E>) { ... }
fn claim(&mut self, _key: KeyEvent, _cx: &mut Cx<'_, E>) -> bool { ... }
fn back(&mut self, _cx: &mut Cx<'_, E>) { ... }
fn hints(&self) -> Vec<Hint<'_>> { ... }
fn facts(&self) -> Vec<(String, Style)> { ... }
fn status(&self) -> Option<(String, Style)> { ... }
fn status_parts(&self, _room: u16) -> Vec<(String, Style)> { ... }
fn lead(&self, _room: u16) -> Vec<(String, Style)> { ... }
fn left(
&self,
_room: u16,
_help: Option<&str>,
) -> Option<Vec<(String, Style)>> { ... }
fn after_tabs(&self) -> Vec<(String, Style)> { ... }
fn caption(&self) -> Option<Vec<(String, Style)>> { ... }
fn notice(&self) -> Option<Notice<'_>> { ... }
fn legend(&self) -> Option<&str> { ... }
fn typing(&self) -> bool { ... }
fn input(&self) -> Option<InputBar<'_>> { ... }
fn crumb(&self) -> Option<String> { ... }
fn selected(&self) -> usize { ... }
fn busy(&self) -> usize { ... }
fn animating(&self) -> bool { ... }
fn deadline(&self) -> Option<Instant> { ... }
fn tick(&mut self, _cx: &mut Cx<'_, E>) { ... }
}Required Methods§
Provided Methods§
fn moment(&mut self, _now: Instant)
fn phase(&self) -> Phase<'_>
fn load(&mut self) -> Option<Job<E>>
fn loaded(&mut self, _event: E, _cx: &mut Cx<'_, E>)
fn sources(&self) -> &[&str]
fn cancel(&mut self)
fn start(&mut self, _cx: &mut Cx<'_, E>)
fn entered(&mut self, _cx: &mut Cx<'_, E>)
fn key(&mut self, _key: KeyEvent, _cx: &mut Cx<'_, E>)
fn paste(&mut self, _text: &str, _cx: &mut Cx<'_, E>)
fn mouse(&mut self, _mouse: MouseEvent, _area: Rect, _cx: &mut Cx<'_, E>)
fn event(&mut self, _event: E, _cx: &mut Cx<'_, E>)
fn answer(&mut self, _yes: bool, _cx: &mut Cx<'_, E>)
fn picked(&mut self, _choice: Option<usize>, _cx: &mut Cx<'_, E>)
fn heard(&mut self, _id: u64, _heard: Heard, _cx: &mut Cx<'_, E>)
fn layer(&mut self, _id: u64, _event: Layered, _cx: &mut Cx<'_, E>)
fn claim(&mut self, _key: KeyEvent, _cx: &mut Cx<'_, E>) -> bool
fn back(&mut self, _cx: &mut Cx<'_, E>)
fn hints(&self) -> Vec<Hint<'_>>
fn facts(&self) -> Vec<(String, Style)>
fn status(&self) -> Option<(String, Style)>
fn status_parts(&self, _room: u16) -> Vec<(String, Style)>
fn lead(&self, _room: u16) -> Vec<(String, Style)>
fn left(&self, _room: u16, _help: Option<&str>) -> Option<Vec<(String, Style)>>
fn after_tabs(&self) -> Vec<(String, Style)>
fn caption(&self) -> Option<Vec<(String, Style)>>
fn notice(&self) -> Option<Notice<'_>>
fn legend(&self) -> Option<&str>
fn typing(&self) -> bool
fn input(&self) -> Option<InputBar<'_>>
fn crumb(&self) -> Option<String>
fn selected(&self) -> usize
fn busy(&self) -> usize
fn animating(&self) -> bool
fn deadline(&self) -> Option<Instant>
fn tick(&mut self, _cx: &mut Cx<'_, E>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".