#include <window_host.hpp>
◆ AppMenuSection
Where an application-menu command (empty menu) sits.
commands is the app's own group (Settings…, …) between the About block and Services; after_about places it directly under "About <App>", where macOS apps put "Check for Updates…". Ignored for named menus.
| Enumerator |
|---|
| commands | |
| after_about | |
◆ action
| std::function<void()> pulp::view::WindowOptions::MenuCommand::action |
◆ app_menu_section
◆ key
◆ menu
| std::string pulp::view::WindowOptions::MenuCommand::menu |
Top-level menu to place this command under.
Leave EMPTY to place it in the application menu — the one titled after the app itself, laid out About, [after_about], Settings…/app commands, Services, Hide…, Quit. Any other value names (and creates on first use) a menu-bar submenu such as "Window" or "View".
◆ modifiers
| std::uint16_t pulp::view::WindowOptions::MenuCommand::modifiers = kModNone |
◆ title
| std::string pulp::view::WindowOptions::MenuCommand::title |
The documentation for this struct was generated from the following file: