|
MythTV master
|
A custom event that represents a mouse gesture. More...
#include <libmythui/mythgesture.h>
Public Types | |
| enum | Gesture : std::uint8_t { Unknown , Up , Down , Left , Right , UpLeft , UpRight , DownLeft , DownRight , UpThenLeft , UpThenRight , DownThenLeft , DownThenRight , LeftThenUp , LeftThenDown , RightThenUp , RightThenDown , RightThenLeft , LeftThenRight , UpThenDown , DownThenUp , LongClick , Click } |
Public Member Functions | |
| MythGestureEvent (Gesture gesture, Qt::MouseButton Button) | |
| Create a MythGesture. More... | |
| ~MythGestureEvent () override=default | |
| QString | GetName () const |
| Get the symbolic name of the gesture. More... | |
| Gesture | GetGesture () const |
| void | SetPosition (QPoint Position) |
| QPoint | GetPosition () const |
| Qt::MouseButton | GetButton () const |
| QString | GetButtonName () const |
Static Public Attributes | |
| static const Type | kEventType = static_cast<QEvent::Type>(QEvent::registerEventType()) |
Private Attributes | |
| Gesture | m_gesture { Unknown } |
| QPoint | m_position |
| Qt::MouseButton | m_button { Qt::NoButton } |
A custom event that represents a mouse gesture.
Definition at line 39 of file mythgesture.h.
| enum MythGestureEvent::Gesture : std::uint8_t |
Definition at line 44 of file mythgesture.h.
|
explicit |
Create a MythGesture.
| gesture | What type of gesture was performed. |
| button | The button (if any) that was pressed during the gesture. |
Definition at line 51 of file mythgesture.cpp.
|
overridedefault |
|
inline |
Definition at line 88 of file mythgesture.h.
Referenced by TvPlayWindow::gestureEvent(), MythDialogBox::gestureEvent(), MythScreenType::gestureEvent(), and MythUITextEdit::gestureEvent().
| QString MythGestureEvent::GetButtonName | ( | ) | const |
Definition at line 92 of file mythgesture.cpp.
|
inline |
Definition at line 85 of file mythgesture.h.
Referenced by TvPlayWindow::gestureEvent(), MythDialogBox::gestureEvent(), MythScreenType::gestureEvent(), MythUIButton::gestureEvent(), MythUIButtonList::gestureEvent(), MythUIButtonTree::gestureEvent(), MythUICheckBox::gestureEvent(), MythUITextEdit::gestureEvent(), and GuideGrid::gestureEvent().
| QString MythGestureEvent::GetName | ( | void | ) | const |
Get the symbolic name of the gesture.
Definition at line 87 of file mythgesture.cpp.
|
inline |
Definition at line 87 of file mythgesture.h.
Referenced by MythScreenType::gestureEvent().
|
inline |
Definition at line 86 of file mythgesture.h.
Referenced by MythMainWindow::eventFilter().
|
static |
Definition at line 91 of file mythgesture.h.
Referenced by MythMainWindow::customEvent(), TV::event(), TV::eventFilter(), TV::ProcessKeypressOrGesture(), and TV::TranslateKeyPressOrGesture().
|
private |
Definition at line 96 of file mythgesture.h.
Referenced by GetButtonName().
Definition at line 94 of file mythgesture.h.
Referenced by GetName().
|
private |
Definition at line 95 of file mythgesture.h.