Adds a menu command.
(
self,
name: &str,
key: Option<HotKey>,
f: F,
)
| 16 | |
| 17 | /// Adds a menu command. |
| 18 | fn command<F: Fn(&mut Context) + Clone + 'static>( |
| 19 | self, |
| 20 | name: &str, |
| 21 | key: Option<HotKey>, |
| 22 | f: F, |
| 23 | ) -> Command<Self, F> { |
| 24 | Command::new(self, name.into(), key, f) |
| 25 | } |
| 26 | |
| 27 | /// Adds a group of menu commands. |
| 28 | fn command_group<T: CommandTuple>(self, cmds: T) -> CommandGroup<Self, T> { |
no outgoing calls
no test coverage detected