Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ContextMenuEvent Class Reference

#include <inviwo/core/interaction/events/contextmenuevent.h>

Inheritance diagram for inviwo::ContextMenuEvent:

Public Member Functions

virtual ContextMenuEvent * clone () const override
 ContextMenuEvent (const ContextMenuEvent &rhs)=default
 ContextMenuEvent (ContextMenuEvent &&)=default
 ContextMenuEvent (std::string_view id, KeyModifiers modifiers, std::any data)
const std::any & data () const
std::string_view getId () const
virtual uint64_t hash () const override
KeyModifiers modifiers () const
ContextMenuEvent & operator= (const ContextMenuEvent &that)=default
ContextMenuEvent & operator= (ContextMenuEvent &&)=default
void setData (std::any data)
void setModifiers (KeyModifiers modifiers)
Public Member Functions inherited from inviwo::Event
template<typename EventType>
EventType * getAs ()
template<typename EventType>
const EventType * getAs () const
const std::vector< Processor * > & getVisitedProcessors () const
bool hasBeenUsed () const
bool hasVisitedProcessor (Processor *) const
bool markAsUnused ()
bool markAsUsed ()
void markAsVisited (Event &)
bool markAsVisited (Processor *)
virtual void print (std::ostream &ss) const
bool setUsed (bool isUsed)
virtual bool shouldPropagateTo (Inport *inport, Processor *processor, Outport *source)

Static Public Member Functions

static constexpr uint64_t chash ()

Additional Inherited Members

Protected Member Functions inherited from inviwo::Event
 Event (const Event &rhs)=default
Event & operator= (const Event &that)=default

Detailed Description

A ContextMenuEvent is triggered when a custom context menu entry is selected.

See also
ContextMenuAction

Member Function Documentation

◆ clone()

virtual ContextMenuEvent * inviwo::ContextMenuEvent::clone ( ) const
overridevirtual

Implements inviwo::Event.

◆ getId()

std::string_view inviwo::ContextMenuEvent::getId ( ) const

ID of the triggered context menu action

◆ hash()

virtual uint64_t inviwo::ContextMenuEvent::hash ( ) const
overridevirtual

Implements inviwo::Event.


The documentation for this class was generated from the following file:
  • include/inviwo/core/interaction/events/contextmenuevent.h