#include <mouse_event.h>
Mouse move event class.
Definition at line 111 of file mouse_event.h.
◆ mouse_move_event()
scl::mouse_move_event::mouse_move_event |
( |
int |
X, |
|
|
int |
Y, |
|
|
bool |
RButton, |
|
|
bool |
LButton, |
|
|
bool |
MButton, |
|
|
bool |
Shift, |
|
|
bool |
Control |
|
) |
| |
|
inline |
- Mouse move event deault constructor..
- Parameters
-
X | - mouse x possition. |
Y | - mouse y possition. |
RButton | - mouse right button state. |
LButton | - mouse left button state. |
MButton | - mouse middle button state. |
Shift | - shift key state. |
Control | - contrl key state. |
Definition at line 132 of file mouse_event.h.
133 :
134 X(X), Y(Y), RButton(RButton), LButton(LButton), MButton(MButton),
135 Shift(Shift), Control(Control) {}
◆ GetControl()
bool scl::mouse_move_event::GetControl |
( |
| ) |
|
|
inline |
◆ GetLButton()
bool scl::mouse_move_event::GetLButton |
( |
| ) |
|
|
inline |
Mouse left button state getter function.
Definition at line 144 of file mouse_event.h.
◆ GetMButton()
bool scl::mouse_move_event::GetMButton |
( |
| ) |
|
|
inline |
Mouse middle button state getter function.
Definition at line 146 of file mouse_event.h.
◆ GetRButton()
bool scl::mouse_move_event::GetRButton |
( |
| ) |
|
|
inline |
Mouse right button state getter function.
Definition at line 142 of file mouse_event.h.
◆ GetShift()
bool scl::mouse_move_event::GetShift |
( |
| ) |
|
|
inline |
◆ GetX()
int scl::mouse_move_event::GetX |
( |
| ) |
|
|
inline |
◆ GetY()
int scl::mouse_move_event::GetY |
( |
| ) |
|
|
inline |
◆ ToString()
std::string scl::mouse_move_event::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
- Convert event to string (for debug).
- Parameters
-
- Returns
- string representation of event.
Reimplemented from scl::event.
Definition at line 158 of file mouse_event.h.
159 {
160 std::stringstream ss;
161 ss <<
GetName() <<
": (X, Y) - (" << X <<
", " << Y
162 << "), RButton - " << RButton << ", LButton - " << LButton << ", MButton - " << MButton;
163 return ss.str();
164 }
virtual const char * GetName() const =0
The documentation for this class was generated from the following file: