Add get_scale_factor task to window module

This commit is contained in:
Héctor Ramón Jiménez 2024-08-30 13:02:49 +02:00
parent 043f030214
commit 0dcec519be
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 22 additions and 1 deletions

View file

@ -80,6 +80,10 @@ where
self.entries.iter_mut().map(|(k, v)| (*k, v))
}
pub fn get(&self, id: Id) -> Option<&Window<P, C>> {
self.entries.get(&id)
}
pub fn get_mut(&mut self, id: Id) -> Option<&mut Window<P, C>> {
self.entries.get_mut(&id)
}