ImFusion C++ SDK 4.5.0
ImFusion::GUI::View::EventHandler Class Referenceabstract

#include <ImFusion/GUI/View.h>

Interface to be used as base class for event handlers of Views. More...

Inheritance diagram for ImFusion::GUI::View::EventHandler:

Detailed Description

Interface to be used as base class for event handlers of Views.

You can register any number of event handlers with a view, see View::addEventHandler().

Public Member Functions

virtual EventResult handleInputEvent (const InputEvent &event)=0
 This function is called by sources of input events in order to dispatch them to the handlers.

Member Function Documentation

◆ handleInputEvent()

virtual EventResult ImFusion::GUI::View::EventHandler::handleInputEvent ( const InputEvent & event)
pure virtual

This function is called by sources of input events in order to dispatch them to the handlers.

In case there are more than one InputEventHandlers dispatchers are intended call this function consecutively until the first handler indicates to stop by returning a result where EventResult::stopPropagation() is true.

Implemented in ImFusion::GUI::SliceViewDefaultEventHandler, and ImFusion::GUI::VolumeViewDefaultEventHandler.


The documentation for this class was generated from the following file:
  • ImFusion/GUI/View.h
Search Tab / S to search, Esc to close