mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-15 05:33:07 +00:00
26 lines
432 B
Rust
26 lines
432 B
Rust
|
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) {
|
||
|
}
|
||
|
}
|