|
Muto 0.0.1
|
Base class for mouse button events. More...
#include <MouseEvent.h>
Public Member Functions | |
| 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 std::string | ToString () const |
| Convert the event to a string representation. | |
| virtual | ~Event ()=default |
Protected Member Functions | |
| MouseButtonEvent (int button) | |
| Construct a MouseButtonEvent with the specified button. | |
Protected Attributes | |
| int | m_Button |
Additional Inherited Members | |
Public Attributes inherited from Muto::Event | |
| bool | Handled = false |
| Indicates whether the event has been handled. | |
Base class for mouse button events.
|
inlineprotected |
Construct a MouseButtonEvent with the specified button.
| button | The mouse button associated with the event. Restricted specific construction to derived classes. |
References m_Button.
Referenced by Muto::MouseButtonPressedEvent::MouseButtonPressedEvent(), and Muto::MouseButtonReleasedEvent::MouseButtonReleasedEvent().
|
inline |
Get the mouse button associated with the event.
References m_Button.
Referenced by Muto::MouseButtonPressedEvent::ToString(), and Muto::MouseButtonReleasedEvent::ToString().
|
protected |
Referenced by GetMouseButton(), and MouseButtonEvent().