feat: add focus api
This commit is contained in:
1 parent
366cf75887
commit
7ca92be015
2 files changed
+12
No files matched your search
@@ -52,6 +52,11 @@ impl DesktopContext {
|
||||
pub fn close(&self) {
|
||||
let _ = self.proxy.send_event(UserWindowEvent::CloseWindow);
|
||||
}
|
||||
|
||||
/// set window to focus
|
||||
pub fn focus(&self) {
|
||||
let _ = self.proxy.send_event(UserWindowEvent::FocusWindow);
|
||||
}
|
||||
}
|
||||
|
||||
/// use this function can get the `DesktopContext` context.
|
||||
|
||||
Reference in new issue
Block a user