KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
Karma::MouseMovedEvent Class Reference

Event triggered on mouse movement (harkat) More...

#include <MouseEvent.h>

Inheritance diagram for Karma::MouseMovedEvent:
Collaboration diagram for Karma::MouseMovedEvent:

Public Member Functions

 MouseMovedEvent (float x, float y)
 Default constructor.
 
float GetX () const
 Getter for x coordinate.
 
float GetY () const
 Getter for y coordinate.
 
std::string ToString () const override
 String representation of event.
 
- Public Member Functions inherited from Karma::Event
virtual EventType GetEventType () const =0
 Getter for event name (type)
 
virtual const char * GetName () const =0
 Getter for event type.
 
virtual int GetCategoryFlags () const =0
 Getter for category flags (enum EventCategory)
 
bool IsInCategory (EventCategory category)
 Routine to see if the category of the Event is (or a part of) given category.
 
bool IsHandled () const
 Getter for the m_Handled.
 
EventGetObjPointer ()
 Getter for the pointer to the object.
 

Additional Inherited Members

- Protected Attributes inherited from Karma::Event
bool m_Handled = false
 

Detailed Description

Event triggered on mouse movement (harkat)

Constructor & Destructor Documentation

◆ MouseMovedEvent()

Karma::MouseMovedEvent::MouseMovedEvent ( float x,
float y )
inline

Default constructor.

Since
Karma 1.0.0

Member Function Documentation

◆ GetX()

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

Getter for x coordinate.

Since
Karma 1.0.0

◆ GetY()

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

Getter for y coordinate.

Since
Karma 1.0.0

◆ ToString()

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

String representation of event.

Since
Karma 1.0.0

Reimplemented from Karma::Event.


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