![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
#include <contextmenuaction.h>
Public Attributes | |
std::string | id |
std::string | label = {} |
std::optional< std::string > | iconPath = std::nullopt |
std::any | data = {} |
bool | enabled = true |
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.