randomusert_lib/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
pub mod randomusert_lib;



pub struct Window {
    title: String,
    width: u32,
    height: u32,
}

impl Window {
    pub fn new(title: &str, width: u32, height: u32) -> Self {
        Self {
            title: title.to_string(),
            width,
            height,
        }
    }

    pub fn show(&self) {
        //platform::create_window(&self.title, self.width, self.height);
        eprintln!("disbaled, because issues!");
    }
}

// Import platform-specific implementations
#[cfg(target_os = "windows")]
mod platform;
#[cfg(target_os = "linux")]
mod platform;
#[cfg(target_os = "macos")]
eprintln!("not implemented!");