Skip to main content

Module menu

Module menu 

Source
Expand description

Menu support for par-term

The menu’s contents live in one place — model — and are rendered two ways:

  • Natively with the muda crate, by MenuManager: 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 a gtk::Window that winit never creates (see linux).

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§

egui_menu
The in-app menu, drawn with egui.
model
Declarative description of par-term’s menu.

Structs§

MenuManager
Manages the native menu system

Enums§

MenuAction
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).