This commit is contained in:
Antonio Scandurra 2023-10-21 18:33:08 +02:00
parent 7bb99c9b9c
commit 3740c9d852
3 changed files with 9 additions and 2 deletions

View file

@ -95,6 +95,10 @@ impl App {
pub fn executor(&self) -> Executor {
self.0.lock().executor.clone()
}
pub fn text_system(&self) -> Arc<TextSystem> {
self.0.lock().text_system.clone()
}
}
type Handler = Box<dyn Fn(&mut AppContext) -> bool + Send + Sync + 'static>;