This commit is contained in:
2026-08-06 18:19:52 +02:00
parent 291693bebe
commit 7604d6caa0
2 changed files with 21 additions and 6 deletions

View File

@@ -1,7 +1,4 @@
use std::{
thread::{self, sleep},
time::Duration,
};
use std::{thread::sleep, time::Duration};
mod rgba;
#[cfg(not(feature = "dev"))]

View File

@@ -3,8 +3,8 @@ use std::rc::Rc;
use evdev::KeyCode;
use linfb::shape::Color;
use slint::platform::software_renderer::{MinimalSoftwareWindow, RepaintBufferType, Rgb565Pixel};
use slint::platform::{Platform, WindowEvent};
use slint::{LogicalPosition, PhysicalSize, Rgb8Pixel, WindowSize};
use slint::platform::{EventLoopProxy, Platform, WindowEvent};
use slint::{EventLoopError, LogicalPosition, PhysicalSize, Rgb8Pixel, WindowSize};
use self::input::InputState;
use self::screen::Screen;
@@ -29,6 +29,24 @@ impl Trekstor {
}
}
struct TrekstorEventProxy {
// .. ????
}
impl EventLoopProxy for TrekstorEventProxy {
fn quit_event_loop(&self) -> Result<(), EventLoopError> {
Ok(())
}
fn invoke_from_event_loop(
&self,
event: Box<dyn FnOnce() + Send>,
) -> Result<(), EventLoopError> {
// dafuq am i supposed to do with this ??
Ok(())
}
}
impl Platform for Trekstor {
fn create_window_adapter(
&self,