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