Add Window::show_window_menu
Add a method to request a system menu. The implementation is provided only on Windows for now. Co-authored-by: daxpedda <daxpedda@gmail.com> Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
This commit is contained in:
parent
42c9b7e40e
commit
1ea41a2ee2
10 changed files with 154 additions and 19 deletions
|
|
@ -444,6 +444,9 @@ impl Window {
|
|||
x11_or_wayland!(match self; Window(window) => window.drag_resize_window(direction))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn show_window_menu(&self, _position: Position) {}
|
||||
|
||||
#[inline]
|
||||
pub fn set_cursor_hittest(&self, hittest: bool) -> Result<(), ExternalError> {
|
||||
x11_or_wayland!(match self; Window(w) => w.set_cursor_hittest(hittest))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue