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