Berserk
Public Member Functions | List of all members
Event Class Referenceabstract

Base class for any engine event. More...

#include <Event.hpp>

Inheritance diagram for Event:
Inheritance graph
[legend]
Collaboration diagram for Event:
Collaboration graph
[legend]

Public Member Functions

BRK_API Event ()=default
 
BRK_API ~Event () override=default
 
virtual BRK_API const EventTypeGetEventType () const =0
 
- Public Member Functions inherited from RefCnt
virtual ~RefCnt ()
 
bool IsUnique () const
 
std::int32_t GetRefs () const
 
std::int32_t AddRef () const
 
std::int32_t RelRef () const
 

Additional Inherited Members

- Protected Member Functions inherited from RefCnt
virtual void Destroy () const
 

Detailed Description

Base class for any engine event.

Inherit from this class to create custom event. Uses StringName as event type to distinguish event kinds.

Constructor & Destructor Documentation

◆ Event()

BRK_API Event::Event ( )
default

◆ ~Event()

BRK_API Event::~Event ( )
overridedefault

Member Function Documentation

◆ GetEventType()

virtual BRK_API const EventType& Event::GetEventType ( ) const
pure virtual

Returns type of this event. Override this function in your custom event implementation.

Returns
Event type string name

Implemented in EventWindow, EventMouse, EventKeyboard, EventJoystick, and EventDropInput.


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