#include <umousewheelevent.hpp>
Inheritance diagram for ufo::UMouseWheelEvent:
Public Types | |
enum | { WHEEL_DATA = 120 } |
Public Member Functions | |
UMouseWheelEvent (UWidget *source, Type type, UMod_t modifiersA, const UPoint &pos, const UPoint &root, int delta, int wheel) | |
UMouseWheelEvent (UWidget *source, Type type, UMod_t modifiersA, const UPoint &pos, int delta, int wheel) | |
const UPoint & | getLocation () const |
const UPoint & | getRootLocation () const |
int | getX () const |
int | getY () const |
int | getRootX () const |
int | getRootY () const |
void | translate (const UPoint &pos) |
int | getWheel () const |
int | getDelta () const |
int | getWheelRotation () const |
Protected Member Functions | |
virtual std::ostream & | paramString (std::ostream &os) const |
|
|
|
The amount that the mouse wheel was scrolled as multiple or fraction of WHEEL_DATA |
|
X value relative to the top most root pane. |
|
Y value relative to the top most root pane. |
|
This method is only for convenience and returns the numbers of "clicks" of the rotation with current "low-resolution" mouse wheels. A negative amount of clicks means a rotation towards the user, positive values are rotations away from the user. It is equal to getScrollAmount() / UMouseWheelEvent::WHEEL_DATA. |
|
X value relative to the source widget. |
|
Y value relative to the source widget. |
|
Prints some useful internal data to the ostream os. This method is meant only for debugging purposes. Reimplemented from ufo::UInputEvent.
|
|
translates the origin of the event |