Initial commit since things seem pretty solid

This commit is contained in:
itsjunetime
2024-05-16 18:23:11 -06:00
commit f298468dc8
10 changed files with 2530 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
use ratatui::widgets::Widget;
pub struct Skip {
skip: bool
}
impl Skip {
pub fn new(skip: bool) -> Self {
Self { skip }
}
}
impl Widget for Skip {
fn render(self, area: ratatui::prelude::Rect, buf: &mut ratatui::prelude::Buffer) {
for x in area.x..(area.x + area.width) {
for y in area.y..(area.y + area.height) {
buf.get_mut(x, y).skip = self.skip;
}
}
}
}