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

A named command with optional shortcut and callback. More...

#include <app_framework.hpp>

Public Attributes

CommandID id = 0
std::string name
std::string category
 Menu category ("File", "Edit", etc.).
KeyShortcut shortcut
std::function< void()> action
std::function< bool()> is_enabled
 Returns false to grey out.
bool is_separator = false
 True for menu separator items.

Detailed Description

A named command with optional shortcut and callback.

Member Data Documentation

◆ action

std::function<void()> pulp::view::Command::action

◆ category

std::string pulp::view::Command::category

Menu category ("File", "Edit", etc.).

◆ id

CommandID pulp::view::Command::id = 0

◆ is_enabled

std::function<bool()> pulp::view::Command::is_enabled

Returns false to grey out.

◆ is_separator

bool pulp::view::Command::is_separator = false

True for menu separator items.

◆ name

std::string pulp::view::Command::name

◆ shortcut

KeyShortcut pulp::view::Command::shortcut

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