Write documentation for menu method in Application
This commit is contained in:
parent
a2f49a74d0
commit
c8ac77e4e9
2 changed files with 6 additions and 2 deletions
|
|
@ -191,7 +191,9 @@ pub trait Application: Sized {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
/// TODO
|
/// Returns the current system [`Menu`] of the [`Application`].
|
||||||
|
///
|
||||||
|
/// By default, it returns an empty [`Menu`].
|
||||||
fn menu(&self) -> Menu<Self::Message> {
|
fn menu(&self) -> Menu<Self::Message> {
|
||||||
Menu::new()
|
Menu::new()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,9 @@ pub trait Application: Program<Clipboard = Clipboard> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
/// TODO
|
/// Returns the current system [`Menu`] of the [`Application`].
|
||||||
|
///
|
||||||
|
/// By default, it returns an empty [`Menu`].
|
||||||
fn menu(&self) -> Menu<Self::Message> {
|
fn menu(&self) -> Menu<Self::Message> {
|
||||||
Menu::new()
|
Menu::new()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue