cursive/cursive-core/src/views/dummy.rs

16 lines
261 B
Rust
Raw Normal View History

use crate::view::View;
use crate::Printer;
2016-07-30 06:36:40 +00:00
/// Dummy view.
///
/// Doesn't print anything. Minimal size is (1,1).
pub struct DummyView;
impl View for DummyView {
fn draw(&self, _: &Printer) {}
2018-08-20 20:30:42 +00:00
2018-08-22 20:33:29 +00:00
fn needs_relayout(&self) -> bool {
false
}
2016-07-30 06:36:40 +00:00
}