![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
#include <inviwo/core/interaction/contextmenuaction.h>
Public Attributes | |
| std::any | data = {} |
| bool | enabled = true |
| std::optional< std::string > | iconPath = std::nullopt |
| std::string | id |
| std::string | label = {} |
Data structure for a custom menu action in a context menu. The id should be unique, for example "<getIdentifier()>.myAction". Otherwise it cannot be guaranteed that the correct InteractionHandler/Processor handles the corresponding ContextMenuEvent. If a menu action is triggered, a ContextMenuEvent with the id will be propagated through the processor network.