diff options
-rw-r--r-- | src/bin/phosphor_test.rs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/bin/phosphor_test.rs b/src/bin/phosphor_test.rs deleted file mode 100644 index c3b307d..0000000 --- a/src/bin/phosphor_test.rs +++ /dev/null @@ -1,36 +0,0 @@ -use buffer::*; -use phosphor::*; - -fn main() { - let mut wm = WindowManager::new(std::time::Duration::from_micros(16666)); - wm.add_window(Box::new(Window {})); - wm.run() -} - -struct Window {} -impl WindowController for Window { - fn minimum_size(&self) -> Option<phosphor::Dimensions> { - Some(phosphor::Dimensions::new(200, 200)) - } - fn maximum_size(&self) -> Option<phosphor::Dimensions> { - Some(phosphor::Dimensions::new(400, 400)) - } - - fn render_request(&self) -> RenderRequest { - RenderRequest::None - } - - fn is_resizable(&self) -> bool { - false - } - - fn on_resize(&mut self, size: phosphor::Dimensions) { - println!("RESIZE: {size:?}"); - } - - fn on_render(&mut self, buffer: &mut Buffer, _: RenderHint) { - println!("RENDER"); - buffer.fill(Colour::TEAL); - } -} - |