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

#include <MouseEvent.hpp>

Inheritance diagram for MouseButtonEvent:
Event MouseButtonPressedEvent MouseButtonReleasedEvent

Public Member Functions

MouseCode GetMouseButton () const noexcept
 
virtual std::string ToString () const override=0
 
- 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
 

Protected Member Functions

 MouseButtonEvent (const MouseCode button)
 

Protected Attributes

MouseCode m_button
 
- Protected Attributes inherited from Event
bool m_isHandled {false}
 

Detailed Description

Mouse Button Click, Hold Event

Definition at line 61 of file MouseEvent.hpp.

Constructor & Destructor Documentation

◆ MouseButtonEvent()

MouseButtonEvent::MouseButtonEvent ( const MouseCode  button)
inlineexplicitprotected

Definition at line 69 of file MouseEvent.hpp.

Member Function Documentation

◆ GetMouseButton()

MouseCode MouseButtonEvent::GetMouseButton ( ) const
inlinenoexcept

Definition at line 63 of file MouseEvent.hpp.

◆ ToString()

virtual std::string MouseButtonEvent::ToString ( ) const
overridepure virtual

Reimplemented from Event.

Implemented in MouseButtonReleasedEvent, and MouseButtonPressedEvent.

Member Data Documentation

◆ m_button

MouseCode MouseButtonEvent::m_button
protected

Definition at line 72 of file MouseEvent.hpp.


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