arsa  2.7
Public Member Functions | List of all members
irr::IEventReceiver Class Referenceabstract

Interface of an object which can receive events. More...

#include <IEventReceiver.h>

Inheritance diagram for irr::IEventReceiver:
irr::CARSAInput irr::gui::IGUIElement irr::scene::ICameraSceneNode irr::scene::ISceneNodeAnimator irr::gui::IGUIButton irr::gui::IGUICheckBox irr::gui::IGUIColorSelectDialog irr::gui::IGUIComboBox irr::gui::IGUIContextMenu irr::gui::IGUIEditBox irr::gui::IGUIFileOpenDialog irr::gui::IGUIImage irr::gui::IGUIInOutFader irr::gui::IGUIListBox irr::gui::IGUIMeshViewer irr::gui::IGUIProfiler irr::gui::IGUIScrollBar irr::gui::IGUISpinBox irr::gui::IGUIStaticText irr::gui::IGUITab irr::gui::IGUITabControl irr::gui::IGUITable irr::gui::IGUIToolBar irr::gui::IGUITreeView irr::gui::IGUIWindow irr::scene::ISceneNodeAnimatorCameraFPS irr::scene::ISceneNodeAnimatorCameraMaya irr::scene::ISceneNodeAnimatorCollisionResponse

Public Member Functions

virtual ~IEventReceiver ()
 Destructor. More...
 
virtual bool OnEvent (const SEvent &event)=0
 Called if an event happened. More...
 

Detailed Description

Interface of an object which can receive events.

Many of the engine's classes inherit IEventReceiver so they are able to process events. Events usually start at a postEventFromUser function and are passed down through a chain of event receivers until OnEvent returns true. See irr::EEVENT_TYPE for a description of where each type of event starts, and the path it takes through the system.

Definition at line 603 of file IEventReceiver.h.

Constructor & Destructor Documentation

◆ ~IEventReceiver()

virtual irr::IEventReceiver::~IEventReceiver ( )
inlinevirtual

Destructor.

Definition at line 608 of file IEventReceiver.h.

608 {}

Member Function Documentation

◆ OnEvent()

virtual bool irr::IEventReceiver::OnEvent ( const SEvent event)
pure virtual

Called if an event happened.

Please take care that you should only return 'true' when you want to prevent Irrlicht from processing the event any further. So 'true' does mean that an event is completely done. Therefore your return value for all unprocessed events should be 'false'.

Returns
True if the event was processed.

Implemented in irr::gui::IGUIElement, irr::CARSAInput, irr::scene::ICameraSceneNode, and irr::scene::ISceneNodeAnimator.


The documentation for this class was generated from the following file: