#include <mouse_event.h>
Mouse wheel scroll event class.
Definition at line 77 of file mouse_event.h.
◆ mouse_wheel_event()
scl::mouse_wheel_event::mouse_wheel_event |
( |
int |
WheelPosDelta | ) |
|
|
inline |
- Mouse wheel scroll event default constructor.
- Parameters
-
WheelPos | - mouse wheel position delta. |
Definition at line 90 of file mouse_event.h.
90 :
91 WheelPosDelta(WheelPosDelta) {}
◆ GetWheelPos()
int scl::mouse_wheel_event::GetWheelPos |
( |
| ) |
|
|
inline |
Mouse wheel position delta getter function.
Definition at line 94 of file mouse_event.h.
94{ return WheelPosDelta; }
◆ ToString()
std::string scl::mouse_wheel_event::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
- Convert event to string (for debug).
- Parameters
-
- Returns
- string representation of event.
Reimplemented from scl::event.
Definition at line 102 of file mouse_event.h.
103 {
104 std::stringstream ss;
105 ss <<
GetName() <<
": Wheel position delta - " << WheelPosDelta;
106 return ss.str();
107 }
virtual const char * GetName() const =0
The documentation for this class was generated from the following file: