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 |
QString MythGestureEvent::GetName | ( | ) | const |
Get the symbolic name of the gesture.
Definition at line 87 of file mythgesture.cpp.
|
inline |
Definition at line 85 of file mythgesture.h.
Referenced by TvPlayWindow::gestureEvent(), MythUIButtonTree::gestureEvent(), MythUICheckBox::gestureEvent(), MythUIButton::gestureEvent(), MythUITextEdit::gestureEvent(), MythScreenType::gestureEvent(), GuideGrid::gestureEvent(), MythUIButtonList::gestureEvent(), and MythDialogBox::gestureEvent().
|
inline |
Definition at line 86 of file mythgesture.h.
Referenced by MythMainWindow::eventFilter().
|
inline |
Definition at line 87 of file mythgesture.h.
Referenced by MythScreenType::gestureEvent().
|
inline |
Definition at line 88 of file mythgesture.h.
Referenced by TvPlayWindow::gestureEvent(), MythUITextEdit::gestureEvent(), MythScreenType::gestureEvent(), and MythDialogBox::gestureEvent().
QString MythGestureEvent::GetButtonName | ( | ) | const |
Definition at line 92 of file mythgesture.cpp.
|
static |
Definition at line 91 of file mythgesture.h.
Referenced by MythMainWindow::customEvent(), TV::event(), TV::eventFilter(), TV::ProcessKeypressOrGesture(), and TV::TranslateKeyPressOrGesture().
Definition at line 94 of file mythgesture.h.
Referenced by GetName().
|
private |
Definition at line 95 of file mythgesture.h.
|
private |
Definition at line 96 of file mythgesture.h.
Referenced by GetButtonName().