Skip to main content

Screen

Trait Screen 

Source
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§

Source

fn draw(&mut self, frame: &mut Frame<'_>, area: Rect, palette: &Palette)

Provided Methods§

Source

fn moment(&mut self, _now: Instant)

Source

fn phase(&self) -> Phase<'_>

Source

fn load(&mut self) -> Option<Job<E>>

Source

fn loaded(&mut self, _event: E, _cx: &mut Cx<'_, E>)

Source

fn sources(&self) -> &[&str]

Source

fn cancel(&mut self)

Source

fn start(&mut self, _cx: &mut Cx<'_, E>)

Source

fn entered(&mut self, _cx: &mut Cx<'_, E>)

Source

fn key(&mut self, _key: KeyEvent, _cx: &mut Cx<'_, E>)

Source

fn paste(&mut self, _text: &str, _cx: &mut Cx<'_, E>)

Source

fn mouse(&mut self, _mouse: MouseEvent, _area: Rect, _cx: &mut Cx<'_, E>)

Source

fn event(&mut self, _event: E, _cx: &mut Cx<'_, E>)

Source

fn answer(&mut self, _yes: bool, _cx: &mut Cx<'_, E>)

Source

fn picked(&mut self, _choice: Option<usize>, _cx: &mut Cx<'_, E>)

Source

fn heard(&mut self, _id: u64, _heard: Heard, _cx: &mut Cx<'_, E>)

Source

fn layer(&mut self, _id: u64, _event: Layered, _cx: &mut Cx<'_, E>)

Source

fn claim(&mut self, _key: KeyEvent, _cx: &mut Cx<'_, E>) -> bool

Source

fn back(&mut self, _cx: &mut Cx<'_, E>)

Source

fn hints(&self) -> Vec<Hint<'_>>

Source

fn facts(&self) -> Vec<(String, Style)>

Source

fn status(&self) -> Option<(String, Style)>

Source

fn status_parts(&self, _room: u16) -> Vec<(String, Style)>

Source

fn lead(&self, _room: u16) -> Vec<(String, Style)>

Source

fn left(&self, _room: u16, _help: Option<&str>) -> Option<Vec<(String, Style)>>

Source

fn after_tabs(&self) -> Vec<(String, Style)>

Source

fn caption(&self) -> Option<Vec<(String, Style)>>

Source

fn notice(&self) -> Option<Notice<'_>>

Source

fn legend(&self) -> Option<&str>

Source

fn typing(&self) -> bool

Source

fn input(&self) -> Option<InputBar<'_>>

Source

fn crumb(&self) -> Option<String>

Source

fn selected(&self) -> usize

Source

fn busy(&self) -> usize

Source

fn animating(&self) -> bool

Source

fn deadline(&self) -> Option<Instant>

Source

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".

Implementors§