cursive/src/views/dummy.rs

16 lines
247 B
Rust
Raw Normal View History

2016-07-30 06:36:40 +00:00
use view::View;
2018-06-11 06:29:10 +00:00
use 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
}