|
Muto 0.0.1
|
Event for registering mouse scroll wheel movement. More...
#include <MouseEvent.h>
Public Member Functions | |
| float | GetXOffset () const |
| Get the x offset of the mouse scroll. | |
| float | GetYOffset () const |
| Get the y offset of the mouse scroll. | |
| MouseScrolledEvent (float xOffset, float yOffset) | |
| Construct a MouseScrolledEvent with the specified x and y offsets. | |
| std::string | ToString () const override |
| Convert the event to a string representation. | |
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 |
Private Attributes | |
| float | m_XOffset |
| float | m_YOffset |
Additional Inherited Members | |
Public Attributes inherited from Muto::Event | |
| bool | Handled = false |
| Indicates whether the event has been handled. | |
Event for registering mouse scroll wheel movement.
Construct a MouseScrolledEvent with the specified x and y offsets.
| xOffset | The offset of the mouse scroll in the x direction. |
| yOffset | The offset of the mouse scroll in the y direction. |
|
inline |
|
inline |
Get the y offset of the mouse scroll.
References m_YOffset.
Referenced by Muto::EditorCamera::OnMouseScroll(), Muto::OrthographicCameraController::OnMouseScrolled(), and ToString().
|
inlineoverridevirtual |
Convert the event to a string representation.
Reimplemented from Muto::Event.
References GetXOffset(), and GetYOffset().
|
private |
Referenced by GetXOffset(), and MouseScrolledEvent().
|
private |
Referenced by GetYOffset(), and MouseScrolledEvent().