Checkpoint
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user