xref: /StarryEngine/starry_toolkit/src/traits/enter.rs (revision 1bee64b64bc410ee78964a11a40a0fff69945480)
1 use std::cell::Cell;
2 
3 pub trait Enter {
4     /// 调用键盘输入回调
emit_enter(&self, char: char, redraw: &Cell<bool>)5     fn emit_enter(&self, char: char, redraw: &Cell<bool>);
6     /// 设置回调函数
set_enter_callback<T: Fn(&Self, char, &Cell<bool>) + 'static>(&self, func: T)7     fn set_enter_callback<T: Fn(&Self, char, &Cell<bool>) + 'static>(&self, func: T);
8 }
9