Add double click to zoom the window

Co-Authored-By: Antonio <me@as-cii.com>
This commit is contained in:
Conrad Irwin 2023-11-02 10:58:24 -06:00
parent bd54bfa4e1
commit 803d2b6710
3 changed files with 31 additions and 13 deletions

View file

@ -575,6 +575,10 @@ impl<'a> WindowContext<'a> {
self.window.active
}
pub fn zoom_window(&self) {
self.window.platform_window.zoom();
}
pub fn display(&self) -> Option<Rc<dyn PlatformDisplay>> {
self.platform
.displays()