Elevate Engine 1
Loading...
Searching...
No Matches
Elevate::MouseMovedEvent Class Reference

#include <MouseEvent.h>

Inheritance diagram for Elevate::MouseMovedEvent:
Elevate::Event

Public Member Functions

 MouseMovedEvent (const float x, const float y)
 
float GetX () const
 
float GetY () const
 
std::string ToString () const override
 
- Public Member Functions inherited from Elevate::Event
virtual EventType GetEventType () const =0
 
virtual const char * GetName () const =0
 
virtual int GetCategoryFlags () const =0
 
bool IsInCategory (EventCategory category)
 

Additional Inherited Members

- Public Attributes inherited from Elevate::Event
bool Handled = false
 
- Protected Attributes inherited from Elevate::Event
bool m_Handled = false
 

Detailed Description

Definition at line 8 of file MouseEvent.h.

Constructor & Destructor Documentation

◆ MouseMovedEvent()

Elevate::MouseMovedEvent::MouseMovedEvent ( const float  x,
const float  y 
)
inline

Definition at line 11 of file MouseEvent.h.

12 : m_MouseX(x), m_MouseY(y) {}

Member Function Documentation

◆ GetX()

float Elevate::MouseMovedEvent::GetX ( ) const
inline

Definition at line 14 of file MouseEvent.h.

14{ return m_MouseX; }

◆ GetY()

float Elevate::MouseMovedEvent::GetY ( ) const
inline

Definition at line 15 of file MouseEvent.h.

15{ return m_MouseY; }

◆ ToString()

std::string Elevate::MouseMovedEvent::ToString ( ) const
inlineoverridevirtual

Reimplemented from Elevate::Event.

Definition at line 17 of file MouseEvent.h.

18 {
19 std::stringstream ss;
20 ss << "MouseMovedEvent: " << m_MouseX << ", " << m_MouseY;
21 return ss.str();
22 }

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