use crate::rframe::RFrame;
use std::path::PathBuf;
use winit::dpi::PhysicalPosition;
use crate::CursorIcon;
pub struct DefaultWindowListener {}
impl WindowListener for DefaultWindowListener {}
pub trait WindowListener {
fn window_opened(&self, frame: &RFrame) {}
fn window_resized(&self, frame: &RFrame) {}
fn window_focused(&self, frame: &RFrame) {}
fn window_moved(&self,position:PhysicalPosition<i32>,frame: &RFrame) {}
fn window_hovered_file(&self,path:PathBuf,frame: &RFrame) {}
fn window_hovered_file_canceled(&self,frame: &RFrame) {}
fn window_dropped_file(&self, path: PathBuf, frame: &RFrame) {
frame.set_cursor_icon(CursorIcon::Arrow);
}
fn window_received_character(&self, key: char, frame: &RFrame) {}
fn window_closed(&self, frame: &RFrame) {}
}
pub trait EventListener {}