mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 23:13:13 -04:00
Add function to check if user is interacting with anything
This commit is contained in:
@@ -220,6 +220,11 @@ impl Data {
|
||||
self.memory.lock().unwrap().active_id = None;
|
||||
}
|
||||
}
|
||||
|
||||
/// Is the user interacting with anything?
|
||||
pub fn any_active(&self) -> bool {
|
||||
self.memory.lock().unwrap().active_id.is_some()
|
||||
}
|
||||
}
|
||||
|
||||
/// Show a pop-over window
|
||||
|
||||
Reference in New Issue
Block a user