started work on lib_application - progress limited as requires alloc support to make further progress
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "lib_application"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
lib_ascii = { path = "../lib_ascii" }
|
||||
@@ -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),
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#![no_std]
|
||||
|
||||
pub mod application;
|
||||
pub mod frame;
|
||||
pub mod window;
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
pub struct Window {
|
||||
width: usize,
|
||||
height: usize
|
||||
}
|
||||
|
||||
impl Window {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
width: 0,
|
||||
height: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
|
||||
|
||||
pub static FONT: [u8; 128 * 16] = [
|
||||
// ASCII 0-31 (Control Characters) - Using simple box patterns
|
||||
// NUL (0)
|
||||
|
||||
Reference in New Issue
Block a user