28 lines
544 B
Rust
28 lines
544 B
Rust
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>
|
|
}
|
|
|
|
pub struct Prefs {
|
|
pub font_path: String,
|
|
pub screen_width: u32,
|
|
pub screen_height: u32,
|
|
}
|
|
|
|
|
|
pub struct DisplayEntry {
|
|
pub route: String,
|
|
pub destination: String,
|
|
pub due_in: i32,
|
|
}
|
|
|
|
pub struct DisplayData {
|
|
pub lines: Vec<DisplayEntry>,
|
|
pub status: Option<String>
|
|
}
|