Expand description
Menu support for par-term
The menu’s contents live in one place — model — and are rendered two
ways:
- Natively with the
mudacrate, byMenuManager: a global application menu bar on macOS, a per-window Win32 menu bar on Windows. - In-app with egui, by
egui_menu::AppMenuUi, on Linux/BSD, where muda cannot attach anything because it needs agtk::Windowthat winit never creates (seelinux).
Both renderers walk the same model, so neither platform can end up with
commands the other lacks. Activations from either arrive as MenuActions
at WindowManager::process_menu_events.
Re-exports§
pub use egui_menu::AppMenuUi;
Modules§
Structs§
- Menu
Manager - Manages the native menu system
Enums§
- Menu
Action - Actions that can be triggered from the menu system
Functions§
- dispatch
- Queue an action raised by the in-app menu.
- drain_
pending_ actions - Take every queued action, leaving the queue empty.
- request_
toggle - Ask the in-app menu to open (or close, if already open).