Add new method to menu::State
This commit is contained in:
parent
3d91926a74
commit
d4ef470b4f
1 changed files with 8 additions and 0 deletions
|
|
@ -120,6 +120,14 @@ pub struct State {
|
|||
}
|
||||
|
||||
impl State {
|
||||
/// Creates a new [`State`] for a [`Menu`].
|
||||
///
|
||||
/// [`State`]: struct.State.html
|
||||
/// [`Menu`]: struct.Menu.html
|
||||
pub fn new() -> Self {
|
||||
Self::default()
|
||||
}
|
||||
|
||||
/// Returns whether the [`Menu`] is currently open or not.
|
||||
///
|
||||
/// [`Menu`]: struct.Menu.html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue