Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
KeyPressedEvent Class Reference

#include <KeyEvent.hpp>

Inheritance diagram for KeyPressedEvent:
KeyEvent Event

Public Member Functions

 KeyPressedEvent (const KeyCode keycode, const std::uint16_t repeat_count)
 
std::uint16_t GetRepeatCount () const noexcept
 
std::string ToString () const override
 
- Public Member Functions inherited from KeyEvent
KeyCode GetKeyCode () const noexcept
 
- Public Member Functions inherited from Event
virtual EventType GetEventType () const =0
 
virtual const char * GetName () const =0
 
virtual std::uint32_t GetCategoryFlags () const =0
 
bool IsInCategory (EventCategory category) const noexcept
 
bool IsHandled () const noexcept
 
void SetHandled (const bool handled) noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from KeyEvent
 KeyEvent (const KeyCode keyCode)
 
- Protected Attributes inherited from KeyEvent
KeyCode m_key_code
 
- Protected Attributes inherited from Event
bool m_isHandled {false}
 

Detailed Description

Keyboard button press Event

Definition at line 28 of file KeyEvent.hpp.

Constructor & Destructor Documentation

◆ KeyPressedEvent()

KeyPressedEvent::KeyPressedEvent ( const KeyCode  keycode,
const std::uint16_t  repeat_count 
)
inline

Definition at line 30 of file KeyEvent.hpp.

Member Function Documentation

◆ GetRepeatCount()

std::uint16_t KeyPressedEvent::GetRepeatCount ( ) const
inlinenoexcept

Definition at line 34 of file KeyEvent.hpp.

◆ ToString()

std::string KeyPressedEvent::ToString ( ) const
inlineoverridevirtual

Reimplemented from Event.

Definition at line 36 of file KeyEvent.hpp.


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