Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::DocumentWindow::MenuItem Struct Reference

A menu item in this window's menu bar. More...

#include <window_classes.hpp>

Public Attributes

std::string title
std::function< void()> action

Detailed Description

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.

Member Data Documentation

◆ action

std::function<void()> pulp::view::DocumentWindow::MenuItem::action

◆ title

std::string pulp::view::DocumentWindow::MenuItem::title

The documentation for this struct was generated from the following file: