Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ContextMenuAction Struct Reference

#include <contextmenuaction.h>

Public Attributes

std::string id
std::string label = {}
std::optional< std::string > iconPath = std::nullopt
std::any data = {}
bool enabled = true

Detailed Description

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.

See also
ContextMenuEvent ContextMenuSeparator ContextMenuSubmenu

The documentation for this struct was generated from the following file:
  • contextmenuaction.h