Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
Event Class Referenceabstract

#include <Event.hpp>

Inheritance diagram for Event:
AppRenderEvent AppTickEvent AppUpdateEvent FrameBufferResizeEvent KeyEvent MouseButtonEvent MouseMotionEvent MouseWheelEvent WindowCloseEvent WindowFileDropEvent WindowFocusEvent WindowFocusLostEvent WindowMaximizedEvent WindowMoveEvent WindowResizeEvent

Public Member Functions

virtual EventType GetEventType () const =0
 
virtual const char * GetName () const =0
 
virtual std::uint32_t GetCategoryFlags () const =0
 
virtual std::string ToString () const
 
bool IsInCategory (EventCategory category) const noexcept
 
bool IsHandled () const noexcept
 
void SetHandled (const bool handled) noexcept
 

Protected Attributes

bool m_isHandled {false}
 

Detailed Description

Definition at line 66 of file Event.hpp.

Member Function Documentation

◆ GetCategoryFlags()

virtual std::uint32_t Event::GetCategoryFlags ( ) const
pure virtual

◆ GetEventType()

virtual EventType Event::GetEventType ( ) const
pure virtual

◆ GetName()

virtual const char* Event::GetName ( ) const
pure virtual

◆ IsHandled()

bool Event::IsHandled ( ) const
inlinenoexcept

Definition at line 77 of file Event.hpp.

◆ IsInCategory()

bool Event::IsInCategory ( EventCategory  category) const
inlinenoexcept

Definition at line 73 of file Event.hpp.

◆ SetHandled()

void Event::SetHandled ( const bool  handled)
inlinenoexcept

Definition at line 78 of file Event.hpp.

◆ ToString()

Member Data Documentation

◆ m_isHandled

bool Event::m_isHandled {false}
protected

Definition at line 81 of file Event.hpp.


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