A named command with optional shortcut and callback.
More...
#include <app_framework.hpp>
A named command with optional shortcut and callback.
◆ action
| std::function<void()> pulp::view::Command::action |
◆ category
| std::string pulp::view::Command::category |
Menu category ("File", "Edit", etc.).
◆ id
◆ 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
The documentation for this struct was generated from the following file: