#include <mouse_event.h>
Mouse buttons click events class.
Definition at line 30 of file mouse_event.h.
◆ mouse_button_event()
scl::mouse_button_event::mouse_button_event |
( |
bool |
Pressed, |
|
|
int |
X, |
|
|
int |
Y, |
|
|
mouse_button |
KeyCode |
|
) |
| |
|
inline |
- Mouse button click default constructor..
- Parameters
-
Pressed | - is mouse key pressed or released flag. |
DbClick | - is button pressecd second time in a row flag. |
X | - mouse x position. |
Y | - mouse y possition. |
KeyCode | - mouse button code. |
Definition at line 49 of file mouse_event.h.
49 :
50 Pressed(Pressed), X(X), Y(Y), KeyCode(KeyCode) {}
◆ GetKeyCode()
Mouse button code getter function.
Definition at line 59 of file mouse_event.h.
◆ GetPressed()
bool scl::mouse_button_event::GetPressed |
( |
| ) |
|
|
inline |
Mouse key pressed or released flag getter function.
Definition at line 53 of file mouse_event.h.
◆ GetX()
int scl::mouse_button_event::GetX |
( |
| ) |
|
|
inline |
Mouse x position getter function.
Definition at line 55 of file mouse_event.h.
◆ GetY()
int scl::mouse_button_event::GetY |
( |
| ) |
|
|
inline |
Mouse y position getter function.
Definition at line 57 of file mouse_event.h.
◆ ToString()
std::string scl::mouse_button_event::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
- Convert event to string (for debug).
- Parameters
-
- Returns
- string representation of event.
Reimplemented from scl::event.
Definition at line 67 of file mouse_event.h.
68 {
69 std::stringstream ss;
70 ss <<
GetName() <<
": Pressed? - " << Pressed
71 << ", (X, Y) - (" << X << ", " << Y << "), KeyCode - " << (int)KeyCode;
72 return ss.str();
73 }
virtual const char * GetName() const =0
The documentation for this class was generated from the following file: