@@ -81,6 +81,11 @@ pub enum Action<T> {
8181 GainFocus ( Id ) ,
8282 /// Change the window [`Level`].
8383 ChangeLevel ( Id , Level ) ,
84+ /// Show the system menu at cursor position.
85+ ///
86+ /// ## Platform-specific
87+ /// Android / iOS / macOS / Orbital / Web / X11: Unsupported.
88+ ShowSystemMenu ( Id ) ,
8489 /// Fetch the raw identifier unique to the window.
8590 FetchId ( Id , Box < dyn FnOnce ( u64 ) -> T + ' static > ) ,
8691 /// Change the window [`Icon`].
@@ -141,6 +146,7 @@ impl<T> Action<T> {
141146 }
142147 Self :: GainFocus ( id) => Action :: GainFocus ( id) ,
143148 Self :: ChangeLevel ( id, level) => Action :: ChangeLevel ( id, level) ,
149+ Self :: ShowSystemMenu ( id) => Action :: ShowSystemMenu ( id) ,
144150 Self :: FetchId ( id, o) => {
145151 Action :: FetchId ( id, Box :: new ( move |s| f ( o ( s) ) ) )
146152 }
@@ -200,6 +206,9 @@ impl<T> fmt::Debug for Action<T> {
200206 Self :: ChangeLevel ( id, level) => {
201207 write ! ( f, "Action::ChangeLevel({id:?}, {level:?})" )
202208 }
209+ Self :: ShowSystemMenu ( id) => {
210+ write ! ( f, "Action::ShowSystemMenu({id:?})" )
211+ }
203212 Self :: FetchId ( id, _) => write ! ( f, "Action::FetchId({id:?})" ) ,
204213 Self :: ChangeIcon ( id, _icon) => {
205214 write ! ( f, "Action::ChangeIcon({id:?})" )
0 commit comments