Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::MouseButtonReleasedEvent Class Reference

Event for registering mouse button releases. More...

#include <MouseEvent.h>

Inheritance diagram for Muto::MouseButtonReleasedEvent:
Muto::MouseButtonEvent Muto::Event

Public Member Functions

 MouseButtonReleasedEvent (int button)
 Construct a MouseButtonReleasedEvent with the specified button.
 
std::string ToString () const override
 Convert the event to a string representation.
 
- Public Member Functions inherited from Muto::MouseButtonEvent
int GetMouseButton () const
 Get the mouse button associated with the event.
 
- Public Member Functions inherited from Muto::Event
virtual int GetCategoryFlags () const =0
 Get the category flags of the event.
 
virtual EventType GetEventType () const =0
 Get the type of the event.
 
virtual const char * GetName () const =0
 Get the name of the event.
 
bool IsInCategory (EventCategory category)
 Check if the event is in a specific category.
 
virtual ~Event ()=default
 

Additional Inherited Members

- Public Attributes inherited from Muto::Event
bool Handled = false
 Indicates whether the event has been handled.
 
- Protected Member Functions inherited from Muto::MouseButtonEvent
 MouseButtonEvent (int button)
 Construct a MouseButtonEvent with the specified button.
 
- Protected Attributes inherited from Muto::MouseButtonEvent
int m_Button
 

Detailed Description

Event for registering mouse button releases.

Constructor & Destructor Documentation

◆ MouseButtonReleasedEvent()

Muto::MouseButtonReleasedEvent::MouseButtonReleasedEvent ( int  button)
inline

Construct a MouseButtonReleasedEvent with the specified button.

Parameters
buttonThe mouse button associated with the event.
132 }
MouseButtonEvent(int button)
Construct a MouseButtonEvent with the specified button.
Definition MouseEvent.h:92
constexpr Scope< T > CreateScope(Args &&... args)
Creates a Scope (unique_ptr) for the given type and constructor arguments.
Definition Defines_Macros.h:51

References Muto::MouseButtonEvent::MouseButtonEvent().

Member Function Documentation

◆ ToString()

std::string Muto::MouseButtonReleasedEvent::ToString ( ) const
inlineoverridevirtual

Convert the event to a string representation.

Reimplemented from Muto::Event.

136 {
137 std::stringstream ss;
138 ss << "MouseButtonReleasedEvent: " << GetMouseButton();
139 return ss.str();
140 }
int GetMouseButton() const
Get the mouse button associated with the event.
Definition MouseEvent.h:84

References Muto::MouseButtonEvent::GetMouseButton().


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