StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | /// A StandardAction is one that corresponds to an action that |
| 2 | /// must be dispatched and handled natively by NSApp (e.g. terminate:) |
| 3 | /// Use CustomActions for handling Warp specific actions. |
| 4 | /// |
| 5 | /// Set a 'repr' here as we store these values as tags in menu items. |
| 6 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive, Hash)] |
| 7 | #[repr(isize)] |
| 8 | pub enum StandardAction { |
| 9 | Close, |
| 10 | Hide, |
| 11 | HideOtherApps, |
| 12 | ShowAllApps, |
| 13 | Quit, |
| 14 | Zoom, |
| 15 | Minimize, |
| 16 | BringAllToFront, |
| 17 | ToggleFullScreen, |
| 18 | Paste, |
| 19 | } |
| 20 |