Attempt to remove the dangeous element focus API

This commit is contained in:
Kirill Bulatov 2023-12-12 15:06:39 +02:00
parent 43b8d65fee
commit 717b2885f8
5 changed files with 39 additions and 80 deletions

View file

@ -168,6 +168,7 @@ impl FocusHandle {
self.id.within_focused(cx)
}
// TODO kb now never used?
/// Obtains whether this handle contains the given handle in the most recently rendered frame.
pub(crate) fn contains(&self, other: &Self, cx: &WindowContext) -> bool {
self.id.contains(other.id, cx)