Struct cursive_core::views::DebugView
source · pub struct DebugView {}
Expand description
View used for debugging, showing logs.
Implementations§
Trait Implementations§
source§impl View for DebugView
impl View for DebugView
source§fn draw(&self, printer: &Printer<'_, '_>)
fn draw(&self, printer: &Printer<'_, '_>)
Draws the view with the given printer (includes bounds) and focus. Read more
source§fn required_size(&mut self, _constraint: Vec2) -> Vec2
fn required_size(&mut self, _constraint: Vec2) -> Vec2
Returns the minimum size the view requires with the given restrictions. Read more
source§fn layout(&mut self, _size: Vec2)
fn layout(&mut self, _size: Vec2)
Called once the size for this view has been decided. Read more
source§fn needs_relayout(&self) -> bool
fn needs_relayout(&self) -> bool
source§fn on_event(&mut self, _: Event) -> EventResult
fn on_event(&mut self, _: Event) -> EventResult
Called when an event is received (key press, mouse event, …). Read more
source§fn call_on_any<'a>(&mut self, _: &Selector<'_>, _: AnyCb<'a>)
fn call_on_any<'a>(&mut self, _: &Selector<'_>, _: AnyCb<'a>)
Runs a closure on the view identified by the given selector. Read more
source§fn focus_view(&mut self, _: &Selector<'_>) -> Result<EventResult, ViewNotFound>
fn focus_view(&mut self, _: &Selector<'_>) -> Result<EventResult, ViewNotFound>
Moves the focus to the view identified by the given selector. Read more
source§fn take_focus(&mut self, source: Direction) -> Result<EventResult, CannotFocus>
fn take_focus(&mut self, source: Direction) -> Result<EventResult, CannotFocus>
Attempt to give this view the focus. Read more