feat: add window api

This commit is contained in:
mrxiaozhuox committed 2022-02-10 16:59:28 +08:00
1 parent f28fb7165a
commit 01435d6aff
2 files changed
+21 -12

No files matched your search

+4 -2
View File
@@ -71,8 +71,10 @@ impl DesktopContext {
}
/// hide the menu
pub fn hide_menu(&self) {
let _ = self.proxy.send_event(UserWindowEvent::HideMenu);
pub fn set_decorations(&self, decoration: bool) {
let _ = self
.proxy
.send_event(UserWindowEvent::SetDecorations(decoration));
}
}