summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--native/src/overlay/menu.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/native/src/overlay/menu.rs b/native/src/overlay/menu.rs
index 0d4bc63c..0018a02c 100644
--- a/native/src/overlay/menu.rs
+++ b/native/src/overlay/menu.rs
@@ -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