randomusert_lib/
lib.rs

1pub mod randomusert_lib;
2
3
4
5pub struct Window {
6    title: String,
7    width: u32,
8    height: u32,
9}
10
11impl Window {
12    pub fn new(title: &str, width: u32, height: u32) -> Self {
13        Self {
14            title: title.to_string(),
15            width,
16            height,
17        }
18    }
19
20    pub fn show(&self) {
21        //platform::create_window(&self.title, self.width, self.height);
22        eprintln!("disbaled, because issues!");
23    }
24}
25
26// Import platform-specific implementations
27#[cfg(target_os = "windows")]
28mod platform;
29#[cfg(target_os = "linux")]
30mod platform;
31#[cfg(target_os = "macos")]
32eprintln!("not implemented!");