feat: add window api
This commit is contained in:
1 parent
f28fb7165a
commit
01435d6aff
2 files changed
+21
-12
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user