idk
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
use std::{
|
||||
thread::{self, sleep},
|
||||
time::Duration,
|
||||
};
|
||||
use std::{thread::sleep, time::Duration};
|
||||
|
||||
mod rgba;
|
||||
#[cfg(not(feature = "dev"))]
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user