mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
16 lines
261 B
Rust
16 lines
261 B
Rust
use crate::view::View;
|
|
use crate::Printer;
|
|
|
|
/// Dummy view.
|
|
///
|
|
/// Doesn't print anything. Minimal size is (1,1).
|
|
pub struct DummyView;
|
|
|
|
impl View for DummyView {
|
|
fn draw(&self, _: &Printer) {}
|
|
|
|
fn needs_relayout(&self) -> bool {
|
|
false
|
|
}
|
|
}
|