summaryrefslogtreecommitdiffstats
path: root/src/tuice/component/base/block.rs
blob: 2232f9d7ab2acfb72b1198e0b1b944683429e106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use tui::{backend::Backend, layout::Rect, Frame};

use crate::tuice::{Event, Status, TmpComponent};

pub struct Block {}

impl<Message> TmpComponent<Message> for Block {
    fn draw<B>(&mut self, _area: Rect, _frame: &mut Frame<'_, B>)
    where
        B: Backend,
    {
        todo!()
    }

    fn on_event(&mut self, _area: Rect, _event: Event, _messages: &mut Vec<Message>) -> Status {
        Status::Ignored
    }
}