NRE::Event::MotionEvent Class Reference

Manage a controller motion event. More...

#include <NRE_MotionEvent.hpp>

Public Member Functions

 MotionEvent ()=delete
 
 MotionEvent (ButtonCode c, Math::Point2D< unsigned int > const &pos)
 
 MotionEvent (MotionEvent const &e)=default
 
 MotionEvent (MotionEvent &&e)=default
 
 ~MotionEvent ()=default
 
ButtonCode getCode () const
 
Math::Point2D< unsigned int > const & getPosition () const
 
bool isCode (ButtonCode c) const
 
MotionEventoperator= (MotionEvent const &e)=default
 
MotionEventoperator= (MotionEvent &&e)=default
 
bool operator== (MotionEvent const &e) const
 

Detailed Description

Manage a controller motion event.

Constructor & Destructor Documentation

NRE::Event::MotionEvent::MotionEvent ( )
delete

Default constructor

NRE::Event::MotionEvent::MotionEvent ( ButtonCode  c,
Math::Point2D< unsigned int > const &  pos 
)

Construct the event

Parameters
cthe button code
posthe curosr position
NRE::Event::MotionEvent::MotionEvent ( MotionEvent const &  e)
default

Copy e into this

Parameters
ethe motion event to copy
NRE::Event::MotionEvent::MotionEvent ( MotionEvent &&  e)
default

Move e into this

Parameters
ethe motion event to move
NRE::Event::MotionEvent::~MotionEvent ( )
default

MotionEvent Deconstructor

Member Function Documentation

ButtonCode NRE::Event::MotionEvent::getCode ( ) const
Returns
the button's code
Math::Point2D<unsigned int> const& NRE::Event::MotionEvent::getPosition ( ) const
Returns
the cursor position
bool NRE::Event::MotionEvent::isCode ( ButtonCode  c) const

Compare the event code to the given one

Parameters
ca button code
Returns
the test's result
MotionEvent& NRE::Event::MotionEvent::operator= ( MotionEvent const &  e)
default

Copy e into this

Parameters
ethe object to copy into this
Returns
the reference of himself
MotionEvent& NRE::Event::MotionEvent::operator= ( MotionEvent &&  e)
default

Copy e into this

Parameters
ethe object to copy into this
Returns
the reference of himself
bool NRE::Event::MotionEvent::operator== ( MotionEvent const &  e) const

Equality test between this and an object

Parameters
ethe other object
Returns
the test result

The documentation for this class was generated from the following file:
  • /mnt/c/Users/abell/Documents/GitHub/NRE-System/src/System/Event/Event/Motion/NRE_MotionEvent.hpp