pub trait EventHandler { // Required method fn handle(&mut self, event: &Event) -> bool; }
事件处理相关功能 事件处理器 trait
处理事件
返回 true 表示事件已处理,返回 false 表示事件未处理