Rename show_window_menu to show_system_menu
This commit is contained in:
parent
f93a6d740a
commit
f1c5186e79
4 changed files with 12 additions and 10 deletions
|
|
@ -160,9 +160,11 @@ pub fn change_level<Message>(id: Id, level: Level) -> Command<Message> {
|
|||
Command::single(command::Action::Window(Action::ChangeLevel(id, level)))
|
||||
}
|
||||
|
||||
/// Show window menu at cursor position.
|
||||
pub fn show_window_menu<Message>(id: Id) -> Command<Message> {
|
||||
Command::single(command::Action::Window(Action::ShowWindowMenu(id)))
|
||||
/// Show the [system menu] at cursor position.
|
||||
///
|
||||
/// [system menu]: https://en.wikipedia.org/wiki/Common_menus_in_Microsoft_Windows#System_menu
|
||||
pub fn show_system_menu<Message>(id: Id) -> Command<Message> {
|
||||
Command::single(command::Action::Window(Action::ShowSystemMenu(id)))
|
||||
}
|
||||
|
||||
/// Fetches an identifier unique to the window, provided by the underlying windowing system. This is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue