Manage a button event.
More...
#include <NRE_ButtonEvent.hpp>
NRE::Event::ButtonEvent::ButtonEvent |
( |
| ) |
|
|
delete |
NRE::Event::ButtonEvent::ButtonEvent |
( |
ButtonCode |
c, |
|
|
Math::Point2D< unsigned int > const & |
pos |
|
) |
| |
Construct the event
- Parameters
-
c | the button code |
pos | the curosr position |
NRE::Event::ButtonEvent::ButtonEvent |
( |
ButtonEvent const & |
e | ) |
|
|
default |
Copy e into this
- Parameters
-
e | the button event to copy |
NRE::Event::ButtonEvent::ButtonEvent |
( |
ButtonEvent && |
e | ) |
|
|
default |
Move e into this
- Parameters
-
e | the button event to move |
NRE::Event::ButtonEvent::~ButtonEvent |
( |
| ) |
|
|
default |
ButtonCode NRE::Event::ButtonEvent::getCode |
( |
| ) |
const |
|
inline |
Math::Point2D<unsigned int> const& NRE::Event::ButtonEvent::getPosition |
( |
| ) |
const |
|
inline |
- Returns
- the cursor position
bool NRE::Event::ButtonEvent::isCode |
( |
ButtonCode |
c | ) |
const |
|
inline |
Compare the event code to the given one
- Parameters
-
- Returns
- the test's result
Copy e into this
- Parameters
-
e | the object to copy into this |
- Returns
- the reference of himself
Copy e into this
- Parameters
-
e | the object to copy into this |
- Returns
- the reference of himself
bool NRE::Event::ButtonEvent::operator== |
( |
ButtonEvent const & |
e | ) |
const |
Equality test between this and an object
- Parameters
-
- 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/Button/NRE_ButtonEvent.hpp