started work on lib_application - progress limited as requires alloc support to make further progress

This commit is contained in:
2025-02-21 16:13:06 +00:00
parent e626a3bcf2
commit f0e25c7a5d
9 changed files with 52 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
[package]
name = "lib_application"
version.workspace = true
edition.workspace = true
[dependencies]
lib_ascii = { path = "../lib_ascii" }
+10
View File
@@ -0,0 +1,10 @@
pub trait Application {
fn run(&mut self, args: [&'static str; 5]) -> Result<(), Error>;
}
pub enum Error {
OsError(&'static str),
ApplicationError(&'static str),
}
View File
+5
View File
@@ -0,0 +1,5 @@
#![no_std]
pub mod application;
pub mod frame;
pub mod window;
+14
View File
@@ -0,0 +1,14 @@
pub struct Window {
width: usize,
height: usize
}
impl Window {
pub fn new() -> Self {
Self {
width: 0,
height: 0
}
}
}
+3
View File
@@ -1,3 +1,6 @@
pub static FONT: [u8; 128 * 16] = [
// ASCII 0-31 (Control Characters) - Using simple box patterns
// NUL (0)