merge commit. probably broken tbh

This commit is contained in:
2025-02-24 15:10:58 +00:00
parent 8d57540566
commit 2f08835d69
6 changed files with 63 additions and 0 deletions
+12
View File
@@ -1,5 +1,7 @@
use crate::{prelude::*, std::maths::geometry::Vec2};
use super::render::{ColouredChar, RenderError};
pub struct Window {
dimensions: Vec2<usize>,
position: Vec2<usize>,
@@ -19,6 +21,10 @@ impl Window {
}
}
pub fn render(&self, _data: &[&[ColouredChar]]) -> Result<(), RenderError> {
todo!();
}
pub const fn is_bordered(&self) -> bool {
self.bordered
}
@@ -78,3 +84,9 @@ impl Drop for Window {
}
}
}
impl Default for Window {
fn default() -> Self {
Self::new()
}
}