Nebula
Loading...
Searching...
No Matches
displayeventhandler.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
16#include "core/refcounted.h"
18
19//------------------------------------------------------------------------------
20namespace CoreGraphics
21{
23{
25public:
29 virtual ~DisplayEventHandler();
30
32 virtual void OnAttach();
34 virtual void OnRemove();
36 virtual bool PutEvent(const DisplayEvent& event);
37
38protected:
40 virtual bool HandleEvent(const DisplayEvent& event);
41};
42
43} // namespace CoreGraphics
44//------------------------------------------------------------------------------
45
The common base class of Nebula.
Definition refcounted.h:38
A display event handler object is notified by the DisplayDevice about noteworthy window events,...
Definition displayeventhandler.h:23
DisplayEventHandler()
constructor
Definition displayeventhandler.cc:16
virtual void OnRemove()
called when the event handler is removed from the DisplayDevice
Definition displayeventhandler.cc:42
virtual bool PutEvent(const DisplayEvent &event)
called by DisplayDevice when an event happens
Definition displayeventhandler.cc:55
virtual ~DisplayEventHandler()
destructor
Definition displayeventhandler.cc:24
virtual void OnAttach()
called when the event handler is attached to the DisplayDevice
Definition displayeventhandler.cc:33
__DeclareClass(DisplayEventHandler)
virtual bool HandleEvent(const DisplayEvent &event)
called when an event should be processed, override this method in your subclass
Definition displayeventhandler.cc:68
Display events are sent by the display device to registered display event handlers.
Definition displayevent.h:24
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24