Checkpoint

This commit is contained in:
2026-05-14 08:42:10 +01:00
parent b3f251e4cc
commit 2dd7d2f83e
5 changed files with 42 additions and 26 deletions
+7 -6
View File
@@ -1,9 +1,10 @@
use sdl3::{Sdl, render::Canvas, ttf::Font, video::Window};
use sdl3::{Sdl, pixels::Color, render::Canvas, ttf::Font, video::Window};
pub struct Screen<'a> {
pub(crate) canvas: Box<Canvas<Window>>,
pub(crate) font: Box<Font<'a>>,
pub(crate) color: Color,
pub(crate) context: Box<Sdl>
}
@@ -14,13 +15,13 @@ pub struct Prefs {
}
pub struct DisplayEntry<'a> {
pub route: &'a String,
pub destination: &'a String,
pub struct DisplayEntry {
pub route: String,
pub destination: String,
pub due_in: i32,
}
pub struct DisplayData<'a> {
pub lines: Vec<DisplayEntry<'a>>,
pub struct DisplayData {
pub lines: Vec<DisplayEntry>,
pub status: Option<String>
}