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

#include <contextmenuaction.h>

Public Attributes

std::string label
 
std::string id
 
std::optional< std::string > iconPath = std::nullopt
 

Detailed Description

Datastructure for a custom menu action in a context menu. The id should be unique, for example "<getIdentifier()>.myAction". Otherwise it cannnot 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: