A menu item in this window's menu bar. More...
#include <window_classes.hpp>
Public Attributes | |
| std::string | title |
| std::function< void()> | action |
A menu item in this window's menu bar.
The action runs on the main thread when the user picks the item. Both title and action are optional — a title with no action is a separator, an action with no title is rejected as a configuration error.
| std::function<void()> pulp::view::DocumentWindow::MenuItem::action |
| std::string pulp::view::DocumentWindow::MenuItem::title |