Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
Visualization::CustomSceneEvent Class Reference
Inheritance diagram for Visualization::CustomSceneEvent:
Interaction::SetCursorEvent Interaction::ShowCommandPromptEvent OOInteraction::SetExpressionCursorEvent

Public Types

using EventFunction = std::function< void()>
 

Public Member Functions

 CustomSceneEvent (EventFunction f)
 
 CustomSceneEvent (QEvent::Type type)
 
virtual ~CustomSceneEvent ()
 
virtual void execute ()
 
void setEventFunction (EventFunction f)
 

Static Public Attributes

static const QEvent::Type EventType = static_cast<QEvent::Type> (QEvent::registerEventType())
 

Private Attributes

EventFunction f_
 

Member Typedef Documentation

◆ EventFunction

using Visualization::CustomSceneEvent::EventFunction = std::function<void()>

Constructor & Destructor Documentation

◆ CustomSceneEvent() [1/2]

Visualization::CustomSceneEvent::CustomSceneEvent ( QEvent::Type  type)

◆ CustomSceneEvent() [2/2]

Visualization::CustomSceneEvent::CustomSceneEvent ( EventFunction  f)

◆ ~CustomSceneEvent()

Visualization::CustomSceneEvent::~CustomSceneEvent ( )
virtual

Member Function Documentation

◆ execute()

void Visualization::CustomSceneEvent::execute ( )
virtual

◆ setEventFunction()

void Visualization::CustomSceneEvent::setEventFunction ( EventFunction  f)
inline

Member Data Documentation

◆ EventType

const QEvent::Type Visualization::CustomSceneEvent::EventType = static_cast<QEvent::Type> (QEvent::registerEventType())
static

◆ f_

EventFunction Visualization::CustomSceneEvent::f_
private