fix: change method name
This commit is contained in:
1 parent
c9fa19d009
commit
30bb92f09a
1 file changed
+3
-3
@@ -34,7 +34,7 @@ impl DesktopContext {
|
||||
/// ```rust
|
||||
/// onmousedown: move |_| { desktop.drag_window(); }
|
||||
/// ```
|
||||
pub fn drag_window(&self) {
|
||||
pub fn drag(&self) {
|
||||
let _ = self.proxy.send_event(UserWindowEvent::DragWindow);
|
||||
}
|
||||
|
||||
@@ -54,12 +54,12 @@ impl DesktopContext {
|
||||
}
|
||||
|
||||
/// close window
|
||||
pub fn close_window(&self) {
|
||||
pub fn close(&self) {
|
||||
let _ = self.proxy.send_event(UserWindowEvent::CloseWindow);
|
||||
}
|
||||
|
||||
/// set window to focus
|
||||
pub fn set_focus(&self) {
|
||||
pub fn focus(&self) {
|
||||
let _ = self.proxy.send_event(UserWindowEvent::FocusWindow);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user