[−][src]Struct cursive::views::DummyView
Dummy view.
Doesn't print anything. Minimal size is (1,1).
Trait Implementations
impl View for DummyView
[src]
fn draw(&self, _: &Printer)
[src]
fn needs_relayout(&self) -> bool
[src]
fn layout(&mut self, _: Vec2)
[src]
Called once the size for this view has been decided. Read more
fn required_size(&mut self, constraint: Vec2) -> Vec2
[src]
Returns the minimum size the view requires with the given restrictions. Read more
fn on_event(&mut self, _: Event) -> EventResult
[src]
Called when an event is received (key press, mouse event, ...). Read more
fn call_on_any<'a>(&mut self, _: &Selector, _: AnyCb<'a>)
[src]
Runs a closure on the view identified by the given selector. Read more
fn focus_view(&mut self, _: &Selector) -> Result<(), ()>
[src]
Moves the focus to the view identified by the given selector. Read more
fn take_focus(&mut self, source: Direction) -> bool
[src]
This view is offered focus. Will it take it? Read more
fn important_area(&self, view_size: Vec2) -> Rect
[src]
What part of the view is important and should be visible? Read more
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.