Struct cursive::views::DummyView [] [src]

pub struct DummyView;

Dummy view.

Doesn't print anything. Minimal size is (1,1).

Trait Implementations

impl View for DummyView
[src]

fn draw(&self, _: &Printer)

Draws the view with the given printer (includes bounds) and focus.

fn on_event(&mut self, Event) -> EventResult

Called when a key was pressed. Default implementation just ignores it.

fn get_min_size(&mut self, constraint: Vec2) -> Vec2

Returns the minimum size the view requires with the given restrictions. Read more

fn needs_relayout(&self) -> bool

Returns true if the view content changed since last layout phase. Read more

fn layout(&mut self, Vec2)

Called once the size for this view has been decided, Read more

fn find(&mut self, &Selector) -> Option<&mut Any>

Finds the view pointed to by the given path. Read more

fn take_focus(&mut self, source: Direction) -> bool

This view is offered focus. Will it take it? Read more