VigilantLamp/graph/
window.rs

1pub trait Window {
2    fn get_title (&self) -> &str;
3    fn get_width (&self) -> u32;
4    fn get_height (&self) -> u32;
5    
6    fn get_size (&self) -> (u32, u32);
7    fn get_aspect_ratio (&self) -> f32 {
8        let size = self.get_size();
9        return (size.0 as f32) / (size.1 as f32);
10    }
11
12    fn clear (&self);
13    fn update (&mut self);
14}