|
TGUI 1.x-dev
|
Public Member Functions | |
| void | reportFingerDown (std::uintptr_t fingerId, float x, float y) |
| Informs the detector that a finger began touching. | |
| void | reportFingerUp (std::uintptr_t fingerId) |
| Informs the detector that a touching finger has moved. | |
| void | reportFingerMotion (std::uintptr_t fingerId, float x, float y) |
| Informs the detector that a finger stopped touching. | |
| bool | isScrolling () const |
| Returns whether two fingers are currently being held down and we have detected it as a scroll event. | |
| Vector2f | getTouchPosition () const |
| Returns the original centroid of the finger positions when the fingers began touching. | |
| float | getDelta (float scale) |
| Returns the amount that the centroid of the finger positions have moved vertically. | |
| float tgui::TwoFingerScrollDetect::getDelta | ( | float | scale | ) |
Returns the amount that the centroid of the finger positions have moved vertically.
| scale | Factor to multiply with distance, for when the view size differs from the window size |
| Vector2f tgui::TwoFingerScrollDetect::getTouchPosition | ( | ) | const |
Returns the original centroid of the finger positions when the fingers began touching.
| bool tgui::TwoFingerScrollDetect::isScrolling | ( | ) | const |
Returns whether two fingers are currently being held down and we have detected it as a scroll event.
| void tgui::TwoFingerScrollDetect::reportFingerDown | ( | std::uintptr_t | fingerId, |
| float | x, | ||
| float | y ) |
Informs the detector that a finger began touching.
| fingerId | Id for the finger that is unique for at least as long as the finger is held down |
| x | X position of the finger on the window |
| y | Y position of the finger on the window |
| void tgui::TwoFingerScrollDetect::reportFingerMotion | ( | std::uintptr_t | fingerId, |
| float | x, | ||
| float | y ) |
Informs the detector that a finger stopped touching.
| fingerId | Id for the finger that was passed to reportFingerDown when the touch began |
| x | X position of the finger on the window |
| y | Y position of the finger on the window |
| void tgui::TwoFingerScrollDetect::reportFingerUp | ( | std::uintptr_t | fingerId | ) |
Informs the detector that a touching finger has moved.
| fingerId | Id for the finger that was passed to reportFingerDown when the touch began |