cursive/src/stack_view.rs

26 lines
432 B
Rust
Raw Normal View History

use view::View;
use super::Size;
use ncurses;
/// Simple stack of views.
/// Only the top-most view is active and can receive input.
pub struct StackView {
layers: Vec<Box<View>>,
}
impl StackView {
/// Creates a new empty StackView
pub fn new() -> Self {
StackView {
layers: Vec::new(),
}
}
}
impl View for StackView {
fn draw(&self, win: ncurses::WINDOW, size: Size) {
}
}