Struct cursive_core::views::DummyView
source · pub struct DummyView;
Expand description
Dummy view.
Doesn’t print anything. Minimal size is (1,1).
Trait Implementations§
source§impl View for DummyView
impl View for DummyView
source§fn draw(&self, _: &Printer<'_, '_>)
fn draw(&self, _: &Printer<'_, '_>)
Draws the view with the given printer (includes bounds) and focus. Read more
source§fn needs_relayout(&self) -> bool
fn needs_relayout(&self) -> bool
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 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