A custom event that represents a mouse gesture. More...
#include <mythgesture.h>
Public Types | |
| enum | Gesture { Unknown, Up, Down, Left, Right, UpLeft, UpRight, DownLeft, DownRight, UpThenLeft, UpThenRight, DownThenLeft, DownThenRight, LeftThenUp, LeftThenDown, RightThenUp, RightThenDown, Click, MaxGesture } |
The types of gestures supported by myth. More... | |
| enum | Button { NoButton, LeftButton, RightButton, MiddleButton, Aux1Button, Aux2Button } |
Public Member Functions | |
| MythGestureEvent (Gesture gesture, Button button=LeftButton) | |
| Create a MythGesture. | |
| Gesture | gesture (void) const |
| Get the gesture type. | |
| operator QString () const | |
| Get the symbolic name of the gesture. | |
| void | SetPosition (QPoint position) |
| QPoint | GetPosition () const |
| void | SetButton (Button button) |
| Button | GetButton (void) const |
Static Public Attributes | |
| static Type | kEventType |
Private Attributes | |
| Gesture | m_gesture |
| QPoint | m_position |
| Button | m_button |
A custom event that represents a mouse gesture.
Definition at line 38 of file mythgesture.h.
The types of gestures supported by myth.
| Unknown | |
| Up | |
| Down | |
| Left | |
| Right | |
| UpLeft | |
| UpRight | |
| DownLeft | |
| DownRight | |
| UpThenLeft | |
| UpThenRight | |
| DownThenLeft | |
| DownThenRight | |
| LeftThenUp | |
| LeftThenDown | |
| RightThenUp | |
| RightThenDown | |
| Click | |
| MaxGesture |
Definition at line 44 of file mythgesture.h.
Definition at line 76 of file mythgesture.h.
Create a MythGesture.
| type | The gesture type, as per the Type enumeration. |
Definition at line 90 of file mythgesture.h.
| Gesture MythGestureEvent::gesture | ( | void | ) | const [inline] |
Get the gesture type.
Definition at line 103 of file mythgesture.h.
Referenced by MythMainWindow::eventFilter(), TvPlayWindow::gestureEvent(), MythUITextEdit::gestureEvent(), MythUICheckBox::gestureEvent(), MythUIButtonList::gestureEvent(), MythUIButton::gestureEvent(), MythScreenType::gestureEvent(), MythDialogBox::gestureEvent(), and MythMainWindow::mouseTimeout().
| MythGestureEvent::operator QString | ( | ) | const |
Get the symbolic name of the gesture.
Definition at line 355 of file mythgesture.cpp.
| void MythGestureEvent::SetPosition | ( | QPoint | position | ) | [inline] |
Definition at line 111 of file mythgesture.h.
Referenced by MythMainWindow::eventFilter().
| QPoint MythGestureEvent::GetPosition | ( | ) | const [inline] |
Definition at line 112 of file mythgesture.h.
Referenced by MythScreenType::gestureEvent().
| void MythGestureEvent::SetButton | ( | Button | button | ) | [inline] |
Definition at line 114 of file mythgesture.h.
Referenced by MythMainWindow::eventFilter().
| Button MythGestureEvent::GetButton | ( | void | ) | const [inline] |
Definition at line 115 of file mythgesture.h.
Referenced by MythScreenType::gestureEvent(), and MythDialogBox::gestureEvent().
QEvent::Type MythGestureEvent::kEventType [static] |
(QEvent::Type) QEvent::registerEventType()
Definition at line 117 of file mythgesture.h.
Referenced by MythMainWindow::customEvent().
Gesture MythGestureEvent::m_gesture [private] |
Definition at line 120 of file mythgesture.h.
Referenced by gesture(), MythGestureEvent(), and operator QString().
QPoint MythGestureEvent::m_position [private] |
Definition at line 121 of file mythgesture.h.
Referenced by GetPosition(), MythGestureEvent(), and SetPosition().
Button MythGestureEvent::m_button [private] |
Definition at line 122 of file mythgesture.h.
Referenced by GetButton(), MythGestureEvent(), and SetButton().
1.6.3